Register - Login
Views: 99824150
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 07:41:32 PM
Jul - Posts by Dragonfly
Dragonfly
Random nobody
Level: 5


Posts: 1/3
EXP: 340
For next: 189

Since: 07-26-10


Since last post: 11.8 years
Last activity: 11.8 years

Posted on 07-26-10 03:44:41 PM, in OBJ Importing - Basic help, please. Link
Okay, I had a browse around and didn't notice anything of a sort that would help me here.

I'll explain my problem and if anyone could link me over to a resource for help or post here with help, I'd be very appreciative.

_________________________________________

So, I have previous history with Level editing in various applications, and am experienced enough in Google SketchUp to be able to construct detailed and fully playable levels. I can also export fine as .OBJ from SketchUp.
My problems are:
- Adding either Custom or Mario textures to Google SketchUp [I'm currently limited to Google SketchUp ones only.]
- Importing these textures to Mario with the OBJ importer.
- When importing the OBJ it flips the level horizontally. Note where the stairs are in SketchUp then in the game itself.

Here's what I have:

Design of level in SketchUp:-


Importing with OBJ Importer:-


And finally, the end result:-



If you can help me sort things out I'd be very appreciative.

~ Dragonfly
Dragonfly
Random nobody
Level: 5


Posts: 2/3
EXP: 340
For next: 189

Since: 07-26-10


Since last post: 11.8 years
Last activity: 11.8 years

Posted on 07-26-10 06:05:50 PM, in OBJ Importing - Basic help, please. Link
Thanks for the reply. I will take a proper look when I have a decent amount of time available - I have mapped some more to the level, if anyone wants a SketchUp Screenshot then feel free to ask.
Dragonfly
Random nobody
Level: 5


Posts: 3/3
EXP: 340
For next: 189

Since: 07-26-10


Since last post: 11.8 years
Last activity: 11.8 years

Posted on 07-28-10 01:02:58 PM, in Mario 64 Level Importer (last edited by Dragonfly at 07-28-10 10:04 AM) Link
Just to say:

1. Thanks so much for this tool, Messiaen, I'm really enjoying using it.

2. I fixed my issue mentioned in a previous thread about texture exporting. So I thought I'd explain here what was going on in case anyone else suffers the same issue.

Basically, when using OBJ Exporter in SketchUp, the .mtl file it created was slightly incorrect. The .mtl said:

#Materials exported from Google Sketchup


newmtl _Texture0207_RGB_Texture0207_RGB_png
Ka 0.000000 0.000000 0.000000
Kd 1.0000 1.0000 1.0000
Tr 1.0
Ks 0.000000 0.000000 0.000000
Ns 3.2000
map_Kd Texture0207_RGB.png



Now, the texture I used was actually a bitmap(.bmp) - this meant the mtl was referencing a piece of data that isn't there.

All I had to do was open up the mtl in notepad [or any plain text editor if you don't use notepad.] and edit the last line of each 'chunk' to refer to the correct texture.

   map_Kd Texture0207_RGB.bmp



Thanks again for trying to help Messiaen, it's a shame someone felt the need to lock my thread so I couldn't just say thanks there.

[EDIT]
Forgot to add:
Do not edit the top line of the chunk, as that's the texture's name. If you change that then the .obj wont have any correspondence to the mtl.
Jul - Posts by Dragonfly


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

21 database queries, 4 query cache hits.
Query execution time: 0.061645 seconds
Script execution time: 0.006033 seconds
Total render time: 0.067678 seconds