Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

.OBJ To Game Maker Studio 2 Converter

A tool that converts .obj files into Game Maker Studio 2 Text · By Sir.TotallyAverage

Conversion Bug: got 'E' expected ',' or ')'

A topic by mischa created Aug 22, 2018 Views: 308 Replies: 3
Viewing posts 1 to 3

I've noticed that when converting certain files, i'd sometimes get incoherent outputs


example:

vertex_position_3d(my_buffer, 0.1100704, 0.07964528, 5.310774E-05);

Not sure where the comes from but it causes errors as it's unreadable in GML. 

Any idea what went wrong and how to fix this? 

Developer(+1)

Hmmm... the E at the end of the number  is a power multiplier. So that last number is actually [5.310774 * 10 ^ -5] or [0.00005310774], which is really tiny.

It looks like it's either my program and c# adding that shorthand to save space or it might be the 3D program you are using.

What does the .obj file you are trying to convert look like?

I got the file from poly.google

https://poly.google.com/view/46Bl5Ook_xw

I downloaded as triangulated obj. 

Developer

Hey. Sorry for the delay. Missed the reply notification.

Looking at the .obj it did in fact have exponential notation in it. I updated the tool and it will now convert extremely large or small numbers to within 8 points of precision so GMS2 can read it.