Water from TGE
by Darren Stuart · in Torque Game Builder · 08/10/2005 (9:31 am) · 12 replies
Is it possible to get the water effect inside t2d?
I was playing with the TGE demo today and thought it would be cool to have in t2d?
I know you could propably do it by combining the 2 engines and render t2d over the top of tge but this seems over kill (and would need me to purchase tge).
I was playing with the TGE demo today and thought it would be cool to have in t2d?
I know you could propably do it by combining the 2 engines and render t2d over the top of tge but this seems over kill (and would need me to purchase tge).
#2
08/11/2005 (1:45 am)
You can add some shader code i think, so yes.
#3
08/11/2005 (1:51 am)
Really? anyone know how to?
#4
BTW, and not to be a jerk, your question doesn't really make sense. The look of water in TGE comes largely from the 3D nature of the game. In 2D, there is no such analogue as "water effects." You could build pretty water-looking tiles or sprites? You could, if the port to TSE existed, make tiles or sprites with a water shader, but "water blocks" as they exist in TGE don't make any sense in T2D. But, then, maybe I'm misunderstanding your question.
08/11/2005 (8:05 am)
You cannot easily add shader code to T2D. You'd need to port T2D to run on top of TSE, which no one has under taken yet. I've got a TSE license, but have been spending my time finishing my first game vs. building technology. Once my game is done, I want to port T2D to TSE with that title. It sounds like a few other people are closer than me, though. :-)BTW, and not to be a jerk, your question doesn't really make sense. The look of water in TGE comes largely from the 3D nature of the game. In 2D, there is no such analogue as "water effects." You could build pretty water-looking tiles or sprites? You could, if the port to TSE existed, make tiles or sprites with a water shader, but "water blocks" as they exist in TGE don't make any sense in T2D. But, then, maybe I'm misunderstanding your question.
#5
08/11/2005 (8:10 am)
I'd say it probably would be more reasonable to generate some source side 2D water effect involving a few textures and texture distorting... then again I'm unfamiliar with that.
#6
I was'nt thinking about taking shader from TSE....juste add the shader in T2D...
08/11/2005 (8:11 am)
Can't you just add the shader to rendering by hacking Torque2D code, without TSE?I was'nt thinking about taking shader from TSE....juste add the shader in T2D...
#7
08/11/2005 (8:38 am)
The version of OpenGL used in T2D is 1.1, if I'm not mistaken. You could hack it in with driver-specific extensions, but then you will only run on, say Nvidia hardware. OpenGL 2.0 doesn't "really" exist yet. Carmack wrote a special version for DOOM3 that supported the subset he needed, but a lack of a real OpenGL 2.0 is what keeps TSE on DirectX only, if I understand it right.
#8
I think adding realistic water shading is really beyond me.
thanks for the suggestions.
08/11/2005 (10:30 am)
I guess it can't be done the way I was thinking because the water effects in tge are 3d.I think adding realistic water shading is really beyond me.
thanks for the suggestions.
#9
08/11/2005 (12:16 pm)
If you could manipulate the quads' vertices directly, you could create some kind of undulating effect. That would be pretty cool.
#10
08/12/2005 (3:01 pm)
Something similar to the way gish moves would be very cool. I think it would be fun to splat, split and stretch materials with varying viscosities.
#11
Its fairly easy to have a water looking texture moving through the level by scrolling a tile map. The problem is it does not look realistic.
I'll have to play with it some more.
08/12/2005 (3:17 pm)
I wanted to have a river in a game which would have looked cool with the tge water effect.Its fairly easy to have a water looking texture moving through the level by scrolling a tile map. The problem is it does not look realistic.
I'll have to play with it some more.
#12
08/22/2005 (11:50 am)
You can also play around with textured objects varying their transparency so the water looks shiny/wavy.
Torque Owner Darren Stuart
whens the next release coming these forums seemed to have died a death.