What program can I use to import or export RoomMesh files aka rmesh files?

A place to discuss anything related to the game SCP:CB.
e=minecraftsquare
Class-D
Posts: 3
Joined: Tue Apr 18, 2017 10:20 am

What program can I use to import or export RoomMesh files aka rmesh files?

Postby e=minecraftsquare » Tue Apr 18, 2017 10:29 am

Title says it all.

User avatar
juanjpro
Barotrauma Developer
Posts: 1173
Joined: Sun Dec 16, 2012 10:51 pm
Location: NaN

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby juanjpro » Tue Apr 18, 2017 8:36 pm

RMesh files are created from B3D meshes with a converter tool: https://github.com/Regalis11/scpcb/blob/master/Converter.bb. Note that not any B3D mesh will work properly with this converter; it was designed for files exported by 3D World Studio, which to my knowledge isn't easily obtainable anymore.

Since I created this file format only to suit Containment Breach's needs (at the time, the game would load from very inefficient B3D files), only the game and a few tools created to develop it are available to read and create files in this format.

It should be possible to take the RMesh viewer (https://github.com/Regalis11/scpcb/blob/master/RMesh_Model_Viewer.bb) and export the loaded mesh into some other format with one of the various snippets on the Blitz3D forums (here's a basic OBJ exporter that could work https://www.blitzbasic.com/codearcs/codearcs.php?code=2801).

Edit: as it turns out, there's already a writemesh function in the RMesh viewer. Calling it right after line 726 should be enough to have a copy of the file in .X format.

e=minecraftsquare
Class-D
Posts: 3
Joined: Tue Apr 18, 2017 10:20 am

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby e=minecraftsquare » Tue Apr 18, 2017 8:53 pm

how do I open bb files?

User avatar
juanjpro
Barotrauma Developer
Posts: 1173
Joined: Sun Dec 16, 2012 10:51 pm
Location: NaN

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby juanjpro » Tue Apr 18, 2017 8:56 pm

.bb files are compiled with Blitz3D. You can get it here: http://www.blitzbasic.com/Community/posts.php?topic=107434

Containment Breach depends on modified binaries for extra features, which are available here: https://github.com/Regalis11/scpcb/blob/master/mavless_bin.zip. You won't need them for the model viewer or the converter.

e=minecraftsquare
Class-D
Posts: 3
Joined: Tue Apr 18, 2017 10:20 am

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby e=minecraftsquare » Tue Apr 18, 2017 9:11 pm

how can I convert rmesh files into b3d files? and btw thank you :)

User avatar
juanjpro
Barotrauma Developer
Posts: 1173
Joined: Sun Dec 16, 2012 10:51 pm
Location: NaN

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby juanjpro » Tue Apr 18, 2017 9:31 pm

I don't have a B3D exporter on hand, but there has be one out there somewhere. Can't be bothered to make or find one, to be honest.

etet2
Technician
Posts: 81
Joined: Fri Jan 29, 2016 8:00 pm

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby etet2 » Wed Apr 19, 2017 6:37 pm

e=minecraftsquare wrote:Title says it all.

WHY DO SCP:CB PLAYER KEEP WRITING IN BAROTRAUMA FORUMS

User avatar
CommanderMark
Senior Staff
Posts: 2548
Joined: Mon Nov 12, 2012 2:00 pm

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby CommanderMark » Thu Apr 20, 2017 1:37 am

etet2 wrote:
e=minecraftsquare wrote:Title says it all.

WHY DO SCP:CB PLAYER KEEP WRITING IN BAROTRAUMA FORUMS

Because they're stupid. 👌

etet2
Technician
Posts: 81
Joined: Fri Jan 29, 2016 8:00 pm

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby etet2 » Thu Apr 20, 2017 2:01 pm

CommanderMark wrote:
etet2 wrote:
e=minecraftsquare wrote:Title says it all.

WHY DO SCP:CB PLAYER KEEP WRITING IN BAROTRAUMA FORUMS

Because they're stupid. 👌

k

User avatar
Vane Brain
SCP:CB Developer
Posts: 775
Joined: Sun Jun 14, 2015 10:15 am
Location: Room404

Re: What program can I use to import or export RoomMesh files aka rmesh files?

Postby Vane Brain » Fri Apr 21, 2017 3:36 pm

etet2 wrote:
e=minecraftsquare wrote:Title says it all.

WHY DO SCP:CB PLAYER KEEP WRITING IN BAROTRAUMA FORUMS

Looks like a raid (no)
Image


Return to “General discussion”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], GeneralSilent and 9 guests