Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nill

Pages: [1]
1
Support / One Object3D or Multi-Object3D ?
« on: December 31, 2016, 12:03:16 pm »
  happy new year!
  here is the question .  I have many text boards to show. 
  1 which is better way to save memory , create a Object3D for each text  or create only one Object3D for all of text?
  2 if i created only one Object3D , how to hide part of this Object3D ? I have tried  get polygon id and using setVertexAlpha(polygonid, alpha) to archive this effect. it seems not work verywell,
    only first of call is work.  (this problem only on android )



2
Support / Re: Is this a bug of PollyLine?
« on: November 14, 2016, 01:58:05 am »
  I use setCameraTo() to make world2 share world1's camera. yes it works .  Is it right?

3
Support / Re: Is this a bug of PollyLine?
« on: November 14, 2016, 01:30:58 am »
Sorry my english is not good enough to describe what I want.

Could you tell me more details about how to share a camera between two worlds ?
Or  how to define a rendering order ?

thanks

4
Support / Re: Is this a bug of PollyLine?
« on: November 13, 2016, 01:42:51 pm »
I want to hide the PollyLine that on the top of the circle object.

So I can't use a transparent object.  right?
So I can't use texture with alpha channel. Because  I found the Object3D must be transparent mode otherwise the apha channel will not work.




5
Support / Is this a bug of PollyLine?
« on: November 13, 2016, 10:07:21 am »
Docments  saids : "Pollyline will be rendered after all objects have been drawn."
and It is true . see attachment, some lines is on the top of the circle. The circle object has been set to be transparent.

But if I disable the transparent of the circle. The PollyLine will not on top of the circle.  Is it by design?
How can I avoid this situation.

thanks for any comments.

6
Support / Re: I can't find direct light, it is not be supported?
« on: November 04, 2016, 01:54:18 am »
I turn down the ambiant light of the world, and setup a light (seems a  spot light).
here are the code:

world.setAmbientLight(1, 1, 1);

Light light = new Light(world);
light.setIntensity(128, 128, 128);
light.setAttenuation(800);
light.setPosition(new SimpleVector(-100, 0, 100));

obj.setAdditionalColor(Color.blue);
world.addObject(obj);

is better ,but the sharp edges still not show up. :(

7
Support / I can't find direct light, it is not be supported?
« on: November 03, 2016, 05:25:08 pm »
if i set up an ambient light, the scene looks like this:  the surface of the cube all are brightness , see attachment bad.png
i want it looks like good.png , but i can't find direct light to implement that effect.

help me out pls

Pages: [1]