Jump to content
L1nkZ

rag2gltf, RSM to glTF model converter

Recommended Posts

Posted (edited)

Hi everyone,

 

A few days ago I started working on an "RSM to glTF 2.0" model converter as an excuse to toy with the glTF file format. I don't know if this'll be useful to anyone but I'm making it open-source so people can re-use it (maybe as an alternative to xarple's converter).

glTF, unlike most other formats, allows easily sharing/showcasing models on the web, like so:

* https://tinyurl.com/na33zm9s (model made by @Syouji from here)

* https://tinyurl.com/22vs9nhm (model made by @Naruto from here)

 

The project is still very early in the development process so it's not refined at all but it should be fairly usable as it is.

You can find it on github: https://github.com/L1nkZ/rag2gltf

 

Limitations

* glTF 2.0 doesn't support texture animations

Releases

0.1.1 - https://github.com/L1nkZ/rag2gltf/releases/tag/v0.1.1

0.1.0 - https://github.com/L1nkZ/rag2gltf/releases/tag/v0.1.0

Screenshots

Microsoft 3D Viewer

kKe8Xl0.png

Blender

Better quality: https://webmshare.com/play/d7BBY

nk5t6Us.gif

AausDLB.png

Edited by L1nkZ
  • Upvote 1
  • Love 2

Share this post


Link to post
Share on other sites

What a great contribution! I've seen that many mappers seek to convert rsm2 to rsm to use with browedit, it would be great if your converter could do it.

  • Upvote 1
  • Love 1

Share this post


Link to post
Share on other sites
Posted (edited)

OOOHHH!!!
Finally, something to convert RSM2 ; W ; !! THANK YOU!!
And for making a new converter! The other one is good, but has got some problems and often it doesn't convert the models x3

But I have a question: is  glTF 2 better than fbx and obj? The tools that we currently have (rsm converter and Bromedit) can only import fbx and obj (as a mesh) respectively, to save them as rsm afterwards).
*I ask because it would be good to have those formats too, but maybe for later on! RSM2 is way more important right now >w<

Oh by the way, is it possible for it to have an exe file later on? x3 thank you!

Edited by Mina-chan
  • Upvote 1

Share this post


Link to post
Share on other sites
Posted (edited)
On 3/26/2021 at 2:14 PM, Mael said:

What a great contribution! I've seen that many mappers seek to convert rsm2 to rsm to use with browedit, it would be great if your converter could do it.

Ah yeah, I've seen many requests about this. Generating RSM files from other formats (including RSM2) was not in my priority list but I'll see if I can do something about this.

On 3/26/2021 at 5:04 PM, Mina-chan said:

OOOHHH!!!
Finally, something to convert RSM2 ; W ; !! THANK YOU!!
And for making a new converter! The other one is good, but has got some problems and often it doesn't convert the models x3

But I have a question: is  glTF 2 better than fbx and obj? The tools that we currently have (rsm converter and Bromedit) can only import fbx and obj (as a mesh) respectively, to save them as rsm afterwards).
*I ask because it would be good to have those formats too, but maybe for later on! RSM2 is way more important right now >w<

Well, RSM2 files are not handled yet!

Comparing file formats is always a matter of pros and cons. The OBJ format lacks some features and is less compact than glTF 2.0, that's for sure.

About FBX vs glTF 2.0 though, the main advantage is about development and maintenance I'd say. Since glTF is an open-source format, it's easy to find implementations, re-use them and also maintain a working converter in the future. Another advantage of glTF is its portability (to the web notably). FBX might be better for general purpose model editing at the moment though.

On 3/26/2021 at 5:21 PM, Mina-chan said:

Oh by the way, is it possible for it to have an exe file later on? x3 thank you!

Yeah I understand standalone executables are easier to use. I'll see if pyinstaller can do the trick.

Edited by L1nkZ
  • Love 1

Share this post


Link to post
Share on other sites

Great. I hope that the progress of R & D of rsm2 conversion can be brought to the forefront. So far, the most troubling problem for everyone is how to degrade the rsm2 model, resulting in various game maps not working properly. This is not my familiar field, and I can't give much help. Tokei Uploaded an article before, which may serve as a reference

 

  • Upvote 1
  • Love 1

Share this post


Link to post
Share on other sites
Posted (edited)
On 3/29/2021 at 8:38 AM, 312200492 said:

Great. I hope that the progress of R & D of rsm2 conversion can be brought to the forefront. So far, the most troubling problem for everyone is how to degrade the rsm2 model, resulting in various game maps not working properly. This is not my familiar field, and I can't give much help. Tokei Uploaded an article before, which may serve as a reference

 

Hi! Yes I'm currently working on supporting RSM2 models (without animations at first) and I'm totally basing that on Tokei's work (thanks a lot to him for releasing his code).

 

RSM2 models are now supported (still without animations)!

Thanks again to @Tokei, who made this a lot easier by sharing his work on the format.

 

e7u3Szh.png

Edited by L1nkZ
  • Upvote 1
  • Love 2
  • MVP 1

Share this post


Link to post
Share on other sites
Posted (edited)
On 4/4/2021 at 5:35 AM, L1nkZ said:

现在支持RSM2模型(仍然没有动画)!

再次感谢 @Tokei,他通过共享格式工作简化了这一工作。

 

e7u3Szh.png
 

HI~~I finally see this exciting news. Do you plan to release the conversion program after repairing the animation??

Edited by Mael

Share this post


Link to post
Share on other sites
Posted (edited)
On 4/6/2021 at 8:02 AM, 312200492 said:

HI~~I finally see this exciting news. Do you plan to release the conversion program after repairing the animation??

Yes, of course, everything is published on the github repository (see the first post).

Animations are now converted as well, except for texture animations, which aren't supported in glTF 2.0 unfortunately!

Better quality: https://webmshare.com/play/d7BBY

nk5t6Us.gif

Edited by Mael
  • Upvote 1
  • Love 1

Share this post


Link to post
Share on other sites
Posted (edited)

@L1nkZ I recommend adding some kind of executable or a precompiled version, so those who have no experience with phyton can use it.

Edited by Mael
  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
On 4/8/2021 at 10:14 PM, Mael said:

@L1nkZ I recommend adding some kind of executable or a precompiled version, so those who have no experience with phyton can use it.

Alright, I pushed a very rough release as an exe for people to try it out (and give some feedback): https://github.com/L1nkZ/rag2gltf/releases/tag/v0.1.1

Edited by L1nkZ
  • Love 2
  • MVP 1

Share this post


Link to post
Share on other sites
Posted (edited)

Thank you. This is very useful for us. I have successfully converted the model

 

 

 

Edited by 312200492
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.