![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
06-05-12, 09:14 AM
|
#1 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
I'm sure of what I say, the datas for transparency (tr or tf) are imported into the editor
, I have to delete them of the .Mtl, otherwise, the objects are transparent or black
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
06-05-12, 09:33 AM
|
#2 | ||
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Quote:
i don't understand this morning at first attemp the object was transparent with the tr,tf data in .mtl,i have retry and now all is normal ![]() Quote:
and there are animated with ... lost controllers in goblin and s3d
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok Last edited by BIGREG; 06-05-12 at 09:58 AM. |
||
|
|
06-05-12, 10:39 AM
|
#3 | |
|
Sparky
![]() Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
|
Quote:
#ifdef GRASS_ANIMATION float frequency = max(0, min(1, Input.Position.y)) * g_animationTime.y; Input.Position.xyz += float3(g_animationTime.x, 0.0, g_animationTime.x) * sin(frequency); #endif However only the plants are animated and the gr2 contains both rocks and plants. I think it's a name convention, the plants have a certain name that differentiates them from the rocks, so the rocks are not rendered with this shader. |
|
|
|
06-05-12, 11:20 AM
|
#4 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Thank Pintea
![]() I see that you know better than me, the process of annimation ![]() For now, I try the different controllers used in .Sim ![]() I'll post the list as soon as I finished ![]() A small question, how are placing plants and rocks
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
06-05-12, 11:28 AM
|
#5 |
|
Sparky
![]() Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
|
The rocks & plants are displayed in a circular area around the player's current location.
The algorithm chooses random rock and plant sub-models from the gr2 and places them like I said above. For the fish to stop being animated like the plants you have to rename the fish model like one of the rocks, something like rock9 or whatever... |
|
|
06-05-12, 11:41 AM
|
#6 |
|
Grey Wolf
![]() Join Date: Oct 2005
Location: Bretagne-FRANCE
Posts: 813
Downloads: 155
Uploads: 0
|
Ok ,But i have attach to plant to make it more real ( and to have the annimation from plants)
![]() Do you think is possible to add an other random .GR2 (Fishs.GR2)If yes,we need to know if we can rename the undersea.GR2 and his .sim to Fish.GR2 ,Maybe we need just to change the adressing in
__________________
~~~~BigReg~BigRegOne~~~~ ![]() "Better watch where you do not go, because where were going, we will know what it is when we get there, and anyway, it will never be only water." Proverbe Shadok |
|
|
06-06-12, 02:46 AM
|
#7 | |
|
Sparky
![]() Join Date: Jan 2010
Posts: 152
Downloads: 6
Uploads: 0
|
Quote:
I don't think it's possible to add another gr2. IIRC undersea.gr2 is harcoded. |
|
|
|
06-05-12, 11:40 AM
|
#8 |
|
Black Magic
![]() |
|
|
|
06-05-12, 12:43 PM
|
#9 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
