3D SGL export script for blender

vbt

Staff member
would it be usefull to put it somewhere online ? on sx ressources or on my github (i know i'm not the author)
 

cafe-alpha

Established Member
would it be usefull to put it somewhere online ? on sx ressources or on my github (i know i'm not the author)

Uploading it somewhere in order to prevent its lost, but keeping it private so that it would respect Rockin-B's policy would be the best choice I think.
And it would be could if it would be the occasion for Rockin-B to pop up here and say "don't mind, please release it" :)

BTW, what's new in the latest version in comparison with latest released version ?
 

XL2

Established Member
Seems like I'm 12 years late to the party, but did anyone got it to work with Blender 2.78?
All the official tools for the Saturn are quite clumsy and everything more complicated than it needs to be, so having an exporter directly in Blender sounds almost too good to be true!
Thanks!
 
Last edited:

mrkotfw

Mid Boss
Seems like I'm 12 years late to the party, but did anyone got it to work with Blender 2.78?
All the official tools for the Saturn are quite clumsy and everything more complicated than it needs to be, so having an exporter directly in Blender sounds almost too good to be true!
Thanks!

Report errors here, and I'll see if I can figure it out. There is the window console (Window->Toggle Window Console).
 
  • Like
Reactions: XL2

mrkotfw

Mid Boss
If I understand things correctly... the pipeline for SGL should be something like: Blender export SG3 export MDL (C or binary file).

It seems like SG3 is just an intermediate file format, no?
 

XL2

Established Member
No, unless I'm mistaken SG3 is a binary file format that could be loaded by the Saturn. I haven't seen any SGL demos using it, but I've seen documentation about it, with headers and all.
The problem with C files is that if you just include headers in your code, it fills your RAM way too quickly, so I don't fully understand yet how games load assets that are hardcoded.

As for the errors, I've had errors such as the print format being wrong (it changed in recent versions of python if I understand), but I also had other errors, I don't think it's anything big, I would just need to "convert" it to modern versions of Blender.

Btw, anyone knows if Rockin'B is still active?
 

XL2

Established Member
This is only text format (Look at SEGA3D section) I found: <https://antime.kapsi.fi/sega/files/ST-124-R1-091394.pdf>.

I just openned a SG3 file and it seems you are right, it is a mix of text to delemitate the sections and ASCII caracters (bytes) for actual data. I guess it could be used to open a file on the Saturn, but it would be slower than full-binary, so it's not that interesting. The documentation I read was about the SGA3 format, which I guess isn't the same (if I understand it correctly).
 

mrkotfw

Mid Boss
Maybe this is remnants of SBL? Have you tried looking at SBL?

Because from what I know, SGL imports MDL, no?
 

XL2

Established Member
Maybe this is remnants of SBL? Have you tried looking at SBL?

Because from what I know, SGL imports MDL, no?

No, I haven't looked at SBL at all, but you are right, there might be examples there since some SBL functions are for loading binary files.
MDL is really just a source file (.h) that you include in your code, while the SG3 (or SGA3) would be to be loaded from the disk when you change level/3d elements.
When you look at the documentation, it seems like the SG3 file format is very good, including even animations, but it's also complicated, so without already included functions I would prefer to just write my own version with only what I need.
 

XL2

Established Member
Just wondering : what version of Blender are you using?
It seems like I can't install it, and someone else who also tried mentionned a similar issue.
 

vbt

Staff member
Just wondering : what version of Blender are you using?
It seems like I can't install it, and someone else who also tried mentionned a similar issue.
i'll try to run it, remember it was done in 2006-2007.
 
Top