material

Which Material Design Framework is best for Phonegap Android?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-14 03:44:30
问题 i decided to use one of material frameworks in my next Cordova Phonegap Project. but i don't know which one is best for phonegap and works fine in older android versions. Polymer, Materializecss, Angular Material and... Which one is best for Phonegap & Android? 回答1: You can try http://ionicframework.com/ its like Phonegap but you use Angular. You have multiple options with material design and ionic. I am going to test this one soon http://ionicmaterial.com/ 回答2: If you are going to use

three.js SpriteCanvasMaterial: TypeError: Cannot read property 'replace' of undefined (in render function)

与世无争的帅哥 提交于 2019-12-13 19:21:47
问题 console log info: THREE.WebGLRenderer 91dev var main3d = { scene: null, camera: null, renderer: null, init: function () { // initialize scene, camera etc. var _dotGeometry = new THREE.Geometry(); _dotGeometry.vertices.push(new THREE.Vector3(2, 4, 0)); //var _dotMaterial = new THREE.PointsMaterial({ size: 5, sizeAttenuation: false, color: 0x00ff00 }); _dotMaterial = new THREE.SpriteCanvasMaterial({ color: 0x00ff00, program: function (context) { context.beginPath(); context.arc(0, 0, 0.05, 0,

Material Change Problems Unity 3D. Cant see any errors

耗尽温柔 提交于 2019-12-13 05:01:24
问题 I am using Unity3D in C# and am trying a simple script to change the material of an object. The initial material set works, but the change on the click of it does not do anything. I know this is basic, and there are lots of questions on this topic here already, but all of them that i have seen, i have tried and not worked. The program does not throw back any errors, the material simply does not change. i tried it with a texture instead and even a renderer.material.color at one point just to

three.js sizeAttenuation to Sprite material

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:39:59
问题 I want the sprite in the scene don't change the size when the camera zoom in or out. and the sprites use different canvas texture as the material. I found that the sizeAttenuation in ParticleBasicMatierial can work for me. But if I use the WenGLRenderer, I must use ParticleSystem instead of the Particle with the CanvasRenderer. I currently use ParticleSystem to contain only one vertex, and every vertex correspond to one ParticleSystem, so there are about 800+ ParticleSystem in my scene, this

Customize google placepicker colors for android

限于喜欢 提交于 2019-12-12 20:08:59
问题 I want to customize google place picker widget for android. Can I styling primary and primary dark colors for devices with API below 21 (using appcompat matherial)? 回答1: Yes it is possible to use material design themes below android 5.0. Check This out Link 来源: https://stackoverflow.com/questions/29321281/customize-google-placepicker-colors-for-android

Flutter: Application's locale is not supported by all of its localization delegates

纵然是瞬间 提交于 2019-12-12 15:58:14
问题 Hello I am trying add BottomNavigationBar in flutter app but when i run project error occures : A MaterialLocalizations delegate that supports the ka_GE locale was not found This is my app delegates: supportedLocales: [ const Locale('en', 'US'), const Locale('ka', 'GE'), const Locale('ru', 'RU'), ], localizationsDelegates: [ const InfosLocalizationsDelegate(), GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate ], locale: Locale('ka') This is Custom LocalizationsDelegate

Material Angular - Compile error - Class 'MatStepper' incorrectly extends base class 'CdkStepper'

孤街浪徒 提交于 2019-12-12 15:12:03
问题 I have problems with compiling my angular website. I have installed all necessary dependencies via npm, but it is not working. I use Material Angular too. And this is the problem, without it works. Log: webpack: Compiling... Date: 2017-11-05T13:02:47.880Z Hash: a4f6320620f5d2e9766f Time: 665ms chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] chunk {main} main.bundle.js (main) 1.85 MB [initial] chunk {polyfills} polyfills.bundle.js (polyfills) 551 kB [initial] chunk {styles} styles

Changing colour of material over time

你。 提交于 2019-12-12 03:24:34
问题 Is there a way to change the colour of a material over time? I want the background of my 2D game to change from white to red in a nice smooth transition. In Unity 5, you can set the "Albedo" colour. This is the property I am looking to change. I can do this through using this: back.SetColor("_Color", new Color(255, 0, 0, 0.5f)); However, how can the colour slowly change instead of being so instant? 回答1: not tested but try it this way: var threshold = 0.001f; var speed = 5.0f; function Start()

Duplicate existing Three.js materials to add displacement calculations

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 02:36:18
问题 I need to do vertex displacements using a texture map in Three.js. Is there an existing material that supports that? If not, what is the best way to duplicate an existing Three.js shader so that I can add in some vertex displacement calculations? I would like to keep existing functionalities such as shadows and wireframe on the material. 回答1: Vertex displacements using a texture map are supported by THREE.ShaderTerrain[ "terrain" ] and THREE.ShaderLib[ "normalmap" ] . Examples of their use

RenderSettings Skybox lerp

纵饮孤独 提交于 2019-12-12 01:54:51
问题 I want to switch my skybox from a day material to a night material for this I use : Material night; int skyboxflag = 0; int flag = 0; float t; public float smooth = 1; void Start () { night = Resources.LoadAll("Night_mat",typeof(Material))[0] as Material; } void Update () { if (skyboxflag == 1) { if(flag == 0){ t = Time.time; flag = 1; } RenderSettings.skybox.Lerp(RenderSettings.skybox, night,(Time.time - t)/smooth); if(Time.time - t > smooth){ skyboxflag = 0; } } } void OnTriggerEnter