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 - Terrabus

Pages: [1]
Support / Skybox lighting
« on: July 22, 2012, 01:09:37 pm »
As I was writing a question about how to change lighting on a skybox I finally figured it out... Thought I should share:

Code: [Select]
skybox.getWorld().setAmbientLight(r, g, b);
The skybox has it's own world. Tidy.

I'm hoping to do some independent but parallel fade transitions on multiple billboards sharing a single texture in GLES 1.0.
Does this sound doable? If so, can someone please point me in the right direction.

This is (not) exactly what I'm trying to do:

Support / Two textures on one object, one repeated?
« on: July 01, 2012, 04:39:44 pm »
Using GLES 1.1, can one stretch one texture across the entire object and repeat another? I've got the two textures blending with TextureInfo, but I can't figure out the next bit. So far I've got this:

Code: [Select]
TextureManager tm = TextureManager.getInstance();
TextureInfo ti = new TextureInfo(tm.getTextureID("tex_ground")); // repeat me 7 times please
ti.add(tm.getTextureID("tex_ground_shadow"), TextureInfo.MODE_MODULATE);

Even with a 'please', the comment doesn't seem to be enough...

Pages: [1]