SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   Fish (https://www.subsim.com/radioroom/showthread.php?t=195027)

TheDarkWraith 06-05-12 08:41 AM

Quote:

Originally Posted by BIGREG (Post 1893681)
:salute: Hi

First test :D :

For the texture i can only use them present with the attached object... for the moment....

Nice :yeah: Looks like someone is having fun :up:

Adding subsets to meshes is something I'm working on today :DL

BIGREG 06-05-12 08:48 AM

Here i have relocate the UVW of a large texture 1024*128->1024*1024
(i have not finished the fish texture,just for testing)

http://dl.dropbox.com/u/8655607/fish02.jpg

The fish move as the plant (oscilate)
But for make more realiste we can see how work the seagull (if anyone know where i can found them :06:)
other we must see is a way to use dito the charactere ( with waypoints :06:)

Meldric 06-05-12 08:53 AM

Great! I am really happy to see this evolving!
Thanks for your hard work!

BIGREG 06-05-12 09:01 AM

For TDW

I noticed that the data Tr, Tf and maybe even illum are not exported in .mtl
But there are imported into the editor :-?:06:
(I have to change. Mtl for the correct rendering) :yep:

TheDarkWraith 06-05-12 09:05 AM

Quote:

Originally Posted by BIGREG (Post 1893740)
For TDW

I noticed that the data Tr, Tf and maybe even illum are not exported in .mtl
But there are imported into the editor :-?:06:
(I have to change. Mtl for the correct rendering) :yep:

The only items the app currently exports in regards to the MTL file are:
- Ns
- Ka
- Kd
- Ks
- Ke
- map_Ka
- map_Kd
- map_Ks
- map_bump and bump

I still have to review the document you posted about the MTL file :yep:

BIGREG 06-05-12 09:14 AM

I'm sure of what I say, the datas for transparency (tr or tf) are imported into the editor :yep:, I have to delete them of the .Mtl, otherwise, the objects are transparent or black :hmmm:

Pintea 06-05-12 09:24 AM

Quote:

Originally Posted by BIGREG (Post 1893733)
The fish move as the plant (oscilate)
But for make more realiste we can see how work the seagull (if anyone know where i can found them :06:)
other we must see is a way to use dito the charactere ( with waypoints :06:)

This may be a problem...the models in undersea.gr2 are animated with a custom vertex shader, so any animations you make for them won't show...so this can be a showstopper.

BIGREG 06-05-12 09:33 AM

Quote:

Originally Posted by BIGREG (Post 1893749)
I'm sure of what I say, the datas for transparency (tr or tf) are imported into the editor :yep:, I have to delete them of the .Mtl, otherwise, the objects are transparent or black :hmmm:

Argh ! :damn: 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 :06::hmmm:

Quote:

This may be a problem...the models in undersea.gr2 are animated with a custom vertex shader, so any animations you make for them won't show...so this can be a showstopper.
No the plants are animated with .sim :03:
and there are animated with ... lost controllers :nope: :damn: in goblin and s3d

Pintea 06-05-12 10:39 AM

Quote:

Originally Posted by BIGREG (Post 1893756)
No the plants are animated with .sim :03:
and there are animated with ... lost controllers :nope: :damn: in goblin and s3d

Nope, they're shader-animated. Check out Shaders/Granny/GrannyVS.fx:
#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.

BIGREG 06-05-12 11:20 AM

Thank Pintea :yeah:

I see that you know better than me, the process of annimation :03:

For now, I try the different controllers used in .Sim :O:
I'll post the list as soon as I finished :yep:

A small question, how are placing plants and rocks :06:

Pintea 06-05-12 11:28 AM

Quote:

Originally Posted by BIGREG (Post 1893799)
A small question, how are placing plants and rocks :06:

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

TheDarkWraith 06-05-12 11:40 AM

Quote:

Originally Posted by BIGREG (Post 1893799)
Thank Pintea :yeah:

I see that you know better than me, the process of annimation :03:

Pintea is a dev iirc :yep: They always give great help and information :up:

BIGREG 06-05-12 11:41 AM

Ok ,But i have attach to plant to make it more real ( and to have the annimation from plants) :D

Do you think is possible to add an other random .GR2 :06: (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 :-?:06:

gap 06-05-12 12:43 PM

Quote:

Originally Posted by TheDarkWraith (Post 1893811)
Pintea is a dev iirc :yep: They always give great help and information :up:

:agree:

much respect for Pintea:
he is not around too often, but his posts are always getting straight to the point, and his help has been resolutive in many circumstances :up:

gap 06-05-12 12:50 PM

Quote:

Originally Posted by BIGREG (Post 1893733)
Here i have relocate the UVW of a large texture 1024*128->1024*1024
(i have not finished the fish texture,just for testing)

http://dl.dropbox.com/u/8655607/fish02.jpg

The fish move as the plant (oscilate)
But for make more realiste we can see how work the seagull (if anyone know where i can found them :06:)
other we must see is a way to use dito the charactere ( with waypoints :06:)

Very well done Bigreg!
But isn't the fish in your screenshot a cold water fish: a trout or something like that? :o :D


All times are GMT -5. The time now is 08:46 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.