Main Menu
Menu

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.

Show posts Menu

Messages - Terrabus

#1
Support / Skybox lighting
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:

skybox.getWorld().setAmbientLight(r, g, b);

The skybox has it's own world. Tidy.
#2
That worked. I misunderstood what that function did. Thanks again EgonOlsen!
#3
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:
http://jsfiddle.net/Ar96M/
#4
Support / Re: Open GL ES 1.0 Lighting
July 09, 2012, 02:44:38 PM
Looks beautiful on Samsung Galaxy SII. Thank you very much.
#5
That's perfect. Thanks again.
#6
I tried a few things but haven't won just yet.

I thought I should clarify the goal with an image (attached). Ideally the shadow is stretched and the tiles are tiled.

The model in as a 3ds from Blender to which I've since added another UV map. Can I apply the shadow texture using the second UV map? Assuming I did that correctly, I totally appreciate that you're not Blender support.

Thanks for JPCT AE and the help EgonOlson. You are Batman.

[attachment deleted by admin]
#7
Support / Two textures on one object, one repeated?
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:

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);
ground.setTexture(ti);


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