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.


Topics - Alexey

Pages: [1]
1
Support / setAdditionalColor
« on: October 29, 2011, 02:18:41 pm »
Hello, i try to set additional color for the object, but it not do any color changes. May do something wrong?
Code: [Select]
Object3dEx marker = new Object3dEx(Primitives.getPlane(1, 10));
initTextureByName(UITextureName.marker.name(), true);
marker.setBillboarding(true);
marker.setTransparency(5);
marker.setTexture(UITextureName.marker.name());
marker.compile();
marker.setLighting(Object3D.LIGHTING_NO_LIGHTS);
marker.build();
world.addObject(marker);
//function for pc/android realization depend to in color class
        addAdditionalColor(marker, new int[]{0,255 ,0});
marker.translate(marker.getTranslation().calcSub(placeObj.getTransformedCenter()));
marker.addParent(placeObj);

        public void addAdditionalColor(Object3D o, int[] color){
o.setAdditionalColor(new RGBColor(color[0], color[1], color[2]));
}



2
Support / Overlay depth
« on: September 30, 2011, 01:24:27 pm »
Hello, i have an overlay issue - when camera overlaps with some object, overlay overlaps too (depth set to 0). For example:

Can i in some way avoid overlapping objects with overlay?

3
Support / Path animation
« on: September 05, 2011, 10:49:41 am »
Hello all, i need to do something like path animation, move the object along the path. yet what I think to place a dummies in the world and use them as intermediate points, but this is somewhat time-consuming. Maybe have a better idea?

4
Bones / blender2ogre -> BufferOverflowException
« on: June 15, 2011, 08:10:41 am »
Code: [Select]
Exception in thread "main" java.nio.BufferOverflowException
at java.nio.Buffer.nextPutIndex(Buffer.java:495)
at java.nio.DirectFloatBufferU.put(DirectFloatBufferU.java:250)
at com.jmex.model.ogrexml.OgreLoader.loadVertexBuffer(OgreLoader.java:381)
at com.jmex.model.ogrexml.OgreLoader.loadMesh(OgreLoader.java:625)
at com.jmex.model.ogrexml.OgreLoader.loadModel(OgreLoader.java:225)
at com.jmex.model.ogrexml.OgreLoader.loadModel(OgreLoader.java:177)
at bones.samples.OgreSample.createAnimatedGroup(OgreSample.java:38)
at bones.samples.AbstractSkinSample.initialize(AbstractSkinSample.java:79)
at bones.samples.OgreSample.initialize(OgreSample.java:57)
at bones.samples.AbstractSample.loop(AbstractSample.java:86)
at bones.samples.OgreSample.main(OgreSample.java:74)

5
Bugs / Child translation after remove parent relation
« on: April 23, 2011, 04:02:07 pm »
If after parent object rotation remove child, child object reset translation/rotation which were applied by parent relation.
It is a bug? How i can leave child in current place after removing parent relation?

Pages: [1]