www.tombraiderforums.com

www.tombraiderforums.com (https://www.tombraiderforums.com/index.php)
-   Tomb Raider Level Editor (https://www.tombraiderforums.com/forumdisplay.php?f=16)
-   -   Animating textures on objects (https://www.tombraiderforums.com/showthread.php?t=222966)

Reggie 14-06-19 22:55

Animating textures on objects
 
I'm wondering if its possible to animate textures on objects besides waterfalls?

Kapu 14-06-19 23:23

PixStr can do it. You can download it here. I've never used it myself, and it's pretty old, so expect a bit of clunkiness.

disapearing-boy 14-06-19 23:28

I once used a tool to put animating (Level) textures from the TGA onto the horizon object - it worked but the level later got corrupted and would crash. I was just testing to see if it were possible. I wanted a heat-haze on my horizon!:p

Scrolling textures like waterfalls are possible on animating slots with one limitation - the same textures must be used on a waterfall slot too, then the engine will scroll that texture on animating slots as well.

Another trick Core used is to have an object (like a monitor screen for example) with several one-sided meshes. By rotating each face 180 degrees at a time, only one face is visible for a few frames, then the next one ect..

Each face is textured with one frame of an animated texture.;)

Reggie 15-06-19 10:48

Quote:

Originally Posted by Kapu (Post 8100307)
PixStr can do it. You can download it here. I've never used it myself, and it's pretty old, so expect a bit of clunkiness.

That would be great but it looks like Pixstr is incompatible with TRNG levels? Thanks though.
Quote:

Originally Posted by disapearing-boy (Post 8100311)
I once used a tool to put animating (Level) textures from the TGA onto the horizon object - it worked but the level later got corrupted and would crash. I was just testing to see if it were possible. I wanted a heat-haze on my horizon!:p

Scrolling textures like waterfalls are possible on animating slots with one limitation - the same textures must be used on a waterfall slot too, then the engine will scroll that texture on animating slots as well.

Another trick Core used is to have an object (like a monitor screen for example) with several one-sided meshes. By rotating each face 180 degrees at a time, only one face is visible for a few frames, then the next one ect..

Each face is textured with one frame of an animated texture.;)

Yeah, it's not a scrolling animation I require. Just a basic fade in/fade out for light ray objects.

Similar to this animation I have for a wall texture.

https://www.tombraiderforums.com/pic...ictureid=13229

LoreRaider 15-06-19 10:55

For a better effect, couldn't you use an amber_light object near that texture, so to simulate the same effect? You can even modify the colour and the intensity of the pulse :)

JMN 15-06-19 10:57

Are you using Tomb Editor? Then you can also use imported geometry. If you use the same texture file for the object as in the map then it should animate.

Reggie 15-06-19 11:09

Quote:

Originally Posted by LoreRaider (Post 8100409)
For a better effect, couldn't you use an amber_light object near that texture, so to simulate the same effect? You can even modify the colour and the intensity of the pulse :)

That gif I posted isn't for an object though, its just to go on a wall, I will consider using an amber light to enhance though if I can change the intensity or size. Do you do so using scripting?

This example is probably a better one.

https://www.tombraiderforums.com/pic...ictureid=13230

It would be cool to apply this to each face of a light ray object so it doesn't look so 'static'.

Quote:

Originally Posted by JMN (Post 8100410)
Are you using Tomb Editor? Then you can also use imported geometry. If you use the same texture file for the object as in the map then it should animate.

I am. How do you use a particular texture file for the object? You don't mean apply it to the object in strpix do you? I can't see an option for assigning textures when using import geometry.

JMN 15-06-19 13:22

Quote:

Originally Posted by Reggie (Post 8100416)
I am. How do you use a particular texture file for the object? You don't mean apply it to the object in strpix do you? I can't see an option for assigning textures when using import geometry.

Not in StrPix, but in your chosen 3D editor. You apply the same texture file used in the map and use the same region of the texture used for the animation range.

Here's an example (using Blender :)):

In Tomb Editor, the animation range has been split to a separate file to make things easier:
http://i.imgur.com/aXi3zkkl.png

In Blender, the same texture file has been applied and the object sides UV mapped to a tile within 256x256 from the origin (complete texture is 256x512 and each tile 128x128):
http://i.imgur.com/6fFmfJNl.png

The object is exported to OBJ and imported into the map:
http://i.imgur.com/Bi7sZCol.png

Result in-game:


One problem with this method is that different blending modes for transparency are not supported, so it won't look good for light rays. But for opaque objects it could work.

Reggie 15-06-19 13:47

Very helpful! Thank you.

Kapu 15-06-19 14:06

Quote:

Originally Posted by Reggie (Post 8100408)
That would be great but it looks like Pixstr is incompatible with TRNG levels? Thanks though.

Oh shoot. Yeah, it's a lot older than TRNG, should have know it wouldn't be compatible. :/

@JMN: Hey, you should make a new thread out of that post in the Tutorials section! Very useful, thank you! :D


All times are GMT. The time now is 13:00.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.