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 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-05-11, 02:49 PM   #271
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Now I render in 3DS Max 2008


Then after placeing in a dat I view it in SH4 Museum.
  Reply With Quote
Old 02-05-11, 03:00 PM   #272
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

But here is that same dat in S3D


Now this may not bother some, but as not all Modders may be aware of the issue, they may think something is wrong with the GR2 Export or the Import to S3D.

My Goal is to insure that all the Tools are compatable with each other.
If I can adjust something in the Exporter to fix what is seen in S3D?
That's what I want to do.
Not just say
"they aren't perfect together, get on with it."
As Skwasjer wrote S3D, I know it will be Expert advice on things involveing S3D.

This is by no means a slam or attack on anything!
It's a quest to resolve any issue no matter where the problem is.
  Reply With Quote
Old 02-05-11, 03:08 PM   #273
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by jimbuna View Post
@Privateer

You have a couple of outstanding PM's
Thanks for the heads up.
I haven't been watching them lately.
I'll reply by PM.
  Reply With Quote
Old 02-05-11, 03:58 PM   #274
Jimbuna
Chief of the Boat
 
Jimbuna's Avatar
 
Join Date: Feb 2006
Location: 250 metres below the surface
Posts: 191,380
Downloads: 63
Uploads: 13


Default

Quote:
Originally Posted by privateer View Post
Thanks for the heads up.
I haven't been watching them lately.
I'll reply by PM.
Danke mate
__________________
Wise men speak because they have something to say; Fools because they have to say something.
Oh my God, not again!!

Jimbuna is offline   Reply With Quote
Old 02-05-11, 05:00 PM   #275
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

you are doing really great stuff, privateer!!!

__________________


urfisch is offline   Reply With Quote
Old 02-05-11, 05:20 PM   #276
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Well, I want to resolve the views stuff in S3D right now.
SH4 does use a 1024 x 512 Image to render in the Museum anyway.
I have not tested in SH3 yet.
The only issue seems to be the view in S3D when woking with the dat file.
Skwasjer is the only one that can answer this issue.
He wrote S3D.
I have the files I used ready to send.
  Reply With Quote
Old 02-06-11, 10:20 AM   #277
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

skwasjer also is a genius. i believe he knows what to do...
__________________


urfisch is offline   Reply With Quote
Old 02-06-11, 12:19 PM   #278
skwasjer
The Old Man
 
Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 28
Uploads: 3
Default

First time, I've seen this kind of inconsistency. So the museum shot and S3D shot are the same DAT, and the OBJ is imported with S3D? What happens if you reexport with S3D and view externally? Same warp? Or back to normal?

I can't explain tbh. This is my shader code, no rocket science:

float4 BaseColor = tex2D(DiffuseMap, In.Texs.xy);

No UV data, texture data or whatever is modified in any way when sending to d3device, and my shader is a direct descendant of unifiedrender-shader. So it is a very odd problem to me.

I be happy to look at OBJ and texture, but I have no further reference material (no other 3D apps, no SH3/4/5 installed) so it may be hard for me to find out. An additional stock ship-DAT(with texture) would be helpful.
skwasjer is offline   Reply With Quote
Old 02-06-11, 11:33 PM   #279
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

My first thought is D3DTADDRESS_WRAP
I have no idea how most of this works.
The 3D Engines I've been testing handle this aspect.
I noticed that some dats from GWX do not render in S3D also.
I never thought much about them till now.
The Whale from GWX renders black in S3D.
I saw that the UV stuff is displaced from standard.
But it renders fine in all versions of SH.

So if I go with the idea I need to center all Texcoords so S3D will render correctly,
I need to have a fuction that tests for conditions outside of the base TexCoords
as S3D understands them.

Now as I am only concerned with SH5 files?
I can pre scan them and code the functions to them.
The numbers of GR2 files with Meshes is limited in SH5.
Those are the only files I'm interested in right now.
It may be possible to filter the files by who created them.
Then apply checking functions and adjusting functions.

That leaves an exported obj file that shows properly in S3D and all other areas.

There may be some meshes that fall outside some speculated matrix though.
  Reply With Quote
Old 02-07-11, 03:27 AM   #280
kovall
Mate
 
Join Date: Apr 2010
Location: Russia. St.Petersburg
Posts: 51
Downloads: 184
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
I noticed that some dats from GWX do not render in S3D also.
I never thought much about them till now.
Some dats from the SH4 do not render in S3D also. For example NDD_J and many others. I noticed that their UV coordinates outside the blue box in 3d max
kovall is offline   Reply With Quote
Old 02-08-11, 02:19 PM   #281
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Yes, your right.

That Blue box is the base area 0,0 to 1,1
Any UV mapping that is beyond that area is not wrapped in S3D
as it is in Max or DeepX and some other programs.

It is much easier to do UV work by takeing advantage of wrapping.
But if a program is not setup to use wrapping?
We see the results in S3D.

I don't expect Skwasjer to release a fix.
Lord knows he's done enuff!

And We can write filters that will adjust things to a more S3D friendly obj file.
In some cases we may still need to do a physical UV adjustment.
But that's what Modding is all about anyway!
You take what you have to work with and figure out ways to do what you want.

I could have the Exporter do a complete transfer to a dat file structure
so it would be ready to just dump into SH3/4

But where is the fun in that?
What kind of Modder would that create?
NONE!
If the tool does all the work?
Your not a modder in any shape, way, or form.
  Reply With Quote
Old 02-11-11, 06:31 PM   #282
Tomi_099
The Old Man
 
Join Date: May 2007
Location: München / Germany
Posts: 1,486
Downloads: 426
Uploads: 0
I THINK WE HAVE IT !!


With all Textures !!


.



.



.


.



.
__________________
http://www.thegreywolves.com
Tomi_099 is offline   Reply With Quote
Old 02-11-11, 06:47 PM   #283
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

The Code I'm working on currently does several new things.
It calculates the Normals based on how you export.
Normals should always be correct no matter the orientation of the mesh,
or the faces.
Flip things, rotate things, Normals are calculated on the fly.

UV preview is possible. (Still finishing up work on this)
With a goal to allow adjusting UV's before exporting.

Now my head hurts cause I hate Math!


Last time I had to do stuff like this was a long range shot in high winds!
  Reply With Quote
Old 02-11-11, 07:06 PM   #284
Tomi_099
The Old Man
 
Join Date: May 2007
Location: München / Germany
Posts: 1,486
Downloads: 426
Uploads: 0
Default

Quote:
Originally Posted by privateer View Post
The Code I'm working on currently does several new things.
It calculates the Normals based on how you export.
Normals should always be correct no matter the orientation of the mesh,
or the faces.
Flip things, rotate things, Normals are calculated on the fly.

UV preview is possible. (Still finishing up work on this)
With a goal to allow adjusting UV's before exporting.

Now my head hurts cause I hate Math!


Last time I had to do stuff like this was a long range shot in high winds!
------------------------------------------

Like this !!!

http://www.myvideo.de/watch/200265/Kopf_platzt
__________________
http://www.thegreywolves.com
Tomi_099 is offline   Reply With Quote
Old 02-11-11, 07:11 PM   #285
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default


  Reply With Quote
Reply

Tags
edit the gr2

Thread Tools
Display Modes

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 04:18 PM.


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