SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 07-04-09, 05:26 PM   #1066
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

I tried restarting the mission, but it doesn't work.
Looking at the aircraft glass didn't get me further either, it's not too different from some other transparent examples in game (FD, trees)
Judging from these it must be somehow possible to eliminate the rainbow effect, but I just can't figure out how

In the meantime I did find out that there doesn't have to be an alpha channel in the texture, just enabling alpha+disabling z-buffer write in S3D is enough to get this strange effect.
__________________

DarkFish is offline   Reply With Quote
Old 07-04-09, 05:42 PM   #1067
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

You don't have the unifiedrender controller active do you?
I notice the Glass does not use that controller.
  Reply With Quote
Old 07-04-09, 05:51 PM   #1068
DarkFish
Sea Lord
 
Join Date: Aug 2008
Location: Stinking drunk in Eindhoven, the Netherlands
Posts: 1,844
Downloads: 28
Uploads: 0
Default

I didn't, I just set up a test mission with the model using a UnifiedRender controller and IT WORKS

Apparently models need this controller to counter the rainbow effect

all thx for your help
__________________

DarkFish is offline   Reply With Quote
Old 07-04-09, 05:56 PM   #1069
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Very cool.


Maybe the Glass stuff has a hard coded controller then.


Anyway,
Glad you got it sorted.
  Reply With Quote
Old 07-04-09, 07:30 PM   #1070
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Quote:
Originally Posted by keltos01 View Post
tried... gave the same screen...

first time ever this happened to me !

keltos
I've already replied to Keltos in pm a week ago, but the game is limited to 65K (65536) uv indices per model. Depending on how good the uv-map can be compressed, this equates to a similar amount or more number of texture coordinates, but there's no rule here.

The solution is to break up the model into two or more parts... This is recommended anyway, because the bigger a model, the more CPU/GPU power is needed to be rendered, as opposed to having the same model in 10 submodels. Clipping a model, computing a bounding box, lighting computations, hitzone/intersect calculations, running it through a shader, etc, all can usually be done faster on several smaller models...
skwasjer is offline   Reply With Quote
Old 07-04-09, 07:42 PM   #1071
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Good information.

Also,
It's easy to get a bit carried away with doing 3D models.

I studied some tutorials on low poly modeling.
And that helped alot.
  Reply With Quote
Old 07-04-09, 07:58 PM   #1072
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Very true. This is actually the hardest part of modelling, making a high poly model look good at half or even less the number of polygons (as far as 10x smaller) from the original.

I forgot to add, any modern game uses a form of lazy loading, meaning it won't load an object unless is has to (S3D does so too partially). Translate this to a huge single model vs 10 smaller ones, anyone can understand why breaking up models is faster. If sections of the model are not in view, it shouldn't need to load them. It saves precious system memory, doesn't need to access your disk, doesn't need to upload the model from system mem to GPU mem, and so on...

The opposite is true for materials/textures, 4 1024x1024 textures is usually worse than one 2048x2048, but it depends a bit on the situation.
skwasjer is offline   Reply With Quote
Old 07-04-09, 08:03 PM   #1073
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Do you think or know that the models in SH series are broken up because of this?
As an example,
detaching some faces even though a part of a single obj file?
  Reply With Quote
Old 07-04-09, 08:24 PM   #1074
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Detaching objects in 3D program as you've indicated in the past is usefull for making unique vertices (with different normals) for a plane, allowing for hard edges. But if you import it as a single object, it's still one object, just with a little bit more (duplicate) vertices. So in context of what I wrote above it won't make alot difference as far as performance is concerned.

But if you import the subobjects from an OBJ-file into seperate 3D chunks, then they are considered seperate objects that can each be loaded (or unloaded for that matter) whenever needed. When an object is loaded into system mem but can be clipped because it's outside of the view frustrum, then it won't pass through the entire render phase, leading to better FPS. Big objects that are only visible for 10% still need to pass through the render phase completely, which hurts performance, especially when you run low on GPU mem...

So yea, in some way the developers definately considered this, although it's not apparent (or not needed) in all game files.
skwasjer is offline   Reply With Quote
Old 07-05-09, 07:52 AM   #1075
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Very cool.
That answers a few things.
Thank you.
  Reply With Quote
Old 07-08-09, 05:41 PM   #1076
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

One thing I'd further like to add is, don't go overboard by dividing a model into too many submodels either. In the end, more models have a little bit more overhead in terms of system memory, matrix computations and device state changes (swapping a material, setting renderflags), so you have to balance it out a little. The best rule of thumb probably is to stay away from large models with big dimensions that will always be in view when they are not cut into pieces. In interiors you can probably get the best improvements, for instance:

- don't use one big model for the hull because then it will always need to be drawn no matter where you look.
- Don't combine two desks in an interior that are spaced apart 40 meters...
- etc.

For the very same reason, ship hulls (even though big dimension), are usually one big model, because you are likely to see it completely anyway (you are not supposed to be only 50 meters away from it right?), so breaking it apart doesn't give you a performance boost, on the contrary...

Confusing?
skwasjer is offline   Reply With Quote
Old 07-09-09, 01:22 AM   #1077
keltos01
Silent Hunter
 
Join Date: Feb 2008
Location: Milan Italy
Posts: 4,999
Downloads: 114
Uploads: 18
Default

clear as day !

making the guns decks a separate obj in the Narwhal sub allows me to work on it without having to go through the hassle of rebuilding the whole hull and hull AO map everytime -> faster too

Thanks Skwasjer !

keltos
__________________
"Honorable Builder of Sinking Ships"

keltos01 is offline   Reply With Quote
Old 07-24-09, 01:48 PM   #1078
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,547
Downloads: 26
Uploads: 3
Default

Patience... I can't access my home computer right now because I had to move out temporarily (I recently seperated), but I will post it as soon as I can.

Regards...
skwasjer is offline   Reply With Quote
Old 07-27-09, 08:33 PM   #1079
Rubini
Ocean Warrior
 
Join Date: May 2005
Location: São Paulo Brazil
Posts: 2,728
Downloads: 132
Uploads: 0
Default

Hi guys,

I already asked skwasjer but he recall me that he don´t have his files for a while.
So, can someone send me a link (by PM ) of the last S3d beta with zones edition feature?

Thanks!

Rubini.
__________________
One gamer's must-have mod is another gamer's waste of time.
-Sailor Steve

Last edited by Rubini; 07-31-09 at 10:07 PM.
Rubini is offline   Reply With Quote
Old 07-27-09, 08:37 PM   #1080
iambecomelife
Silent Hunter
 
Join Date: Apr 2005
Posts: 4,585
Downloads: 297
Uploads: 0


Default

Quote:
Originally Posted by Rubini View Post
Hi guys,

I already ask skwasjer but he recall me that he don´t have his files for a while.
So, can someone send me a link (by PM ) of the last S3d beta with zones edition feature?

Thanks!

Rubini.
Same here, please.
iambecomelife is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:56 AM.


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.