Put an triangle on a sphere

Started by krausi, July 25, 2012, 03:41:45 PM

Previous topic - Next topic

krausi

Hallo,

at first i'm very new to JPCT-AE.
All in all i want to put a filled triangle on the surface of a sphere.

I have the sphere already. But how do i put a triangle on the surface?
Ive tried the addTriangle() method but it didnt works.
Maybe i created wrong SimpleVectors.

I would be very happy if somebody can help me.

PS: Please give a detailed answer because im very new to this topic.



thank you  :)

krausi

sry i put it to jpct :(

it belongs to the jpct-ae (android topic)

EgonOlsen

I'm not quite sure what you are trying to do...you have a sphere (an Object3D..!?) and you want to create new Object3D that contains only one polygon? Or the sphere isn't an object at all? Or it's an object and you want to add a polygon... ???

krausi

No i have the sphere already. (Object 3D Model load from asc file) The sphere works fine.

But now i want to put a triangle on the surface of the sphere.

Do you know what i mean? :-)

EgonOlsen

You want to create an Object3D that contains one triangle that is located on the sphere!?


EgonOlsen

And if you try that, the result isn't visible? If so, try to call setCulling(false); and see if that helps. If it does, your vertex order in the object is wrong.