Code Monkey home page Code Monkey logo

Comments (41)

sbobovyc avatar sbobovyc commented on August 17, 2024

You are better off converting from csv to obj using this https://github.com/sbobovyc/GameTools/blob/master/common/raw2obj.py

from gametools.

friuns2 avatar friuns2 commented on August 17, 2024

raw2obj.py didn't work either for me, i click import its says modules installed ()
but there no import added

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

raw2obj.py is not a blender plugin, it is a stand alone command line tool

from gametools.

stormloop avatar stormloop commented on August 17, 2024

how do you then use it? if i open it it just closes itself again

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

@stormloop What OS are you using?

from gametools.

stormloop avatar stormloop commented on August 17, 2024

Windows 10

from gametools.

stormloop avatar stormloop commented on August 17, 2024

do i need a special python thing to run it?

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Python 3, nothing special. Just get a command line shell and run it similar to this:
python3 raw2obj.py -h
That should print the help.

from gametools.

stormloop avatar stormloop commented on August 17, 2024

well i have 3.8.1, i guess that works too

from gametools.

stormloop avatar stormloop commented on August 17, 2024

when i do what you said it gives me:

python3 raw2obj.py -h
File "", line 1
python3 raw2obj.py -h
^
SyntaxError: invalid syntax

from gametools.

stormloop avatar stormloop commented on August 17, 2024

the ^is under the r from raw2obj.py

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

How did you download raw2obj.py? Did you click on "Raw" button and then save as text file?

from gametools.

stormloop avatar stormloop commented on August 17, 2024

is that the way to do it?

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Another is to clone or download the entire repo. If you just want that script, raw is fine.

from gametools.

stormloop avatar stormloop commented on August 17, 2024

then yes it still does that, but dont you need to pase a file path? not just a file name

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

You can either pass the full path to where the script is like:
python3 C:\Users\sbobovyc\Desktop\raw2obj.py -h
or you can change directory to where the script is and run it there:
cd C:\Users\sbobovyc\Desktop
python3 raw2obj.py -h

from gametools.

stormloop avatar stormloop commented on August 17, 2024

it gives the same error for that that it gave for actually trying to run the command
the cd one

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Can you post a screen shot of exactly what you are doing?

from gametools.

stormloop avatar stormloop commented on August 17, 2024

sorry for late answer, i was quite busy the past few days...
raw2obj

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

You are executing a shell command on the python shell. Instead of starting a python shell, use cmd (Command Prompt) or PowerShell.
image

from gametools.

stormloop avatar stormloop commented on August 17, 2024

i feel kinda stupid, but this is now in cmd (its just in dutch), -h doesnt seem to do much
raw2objcmnd

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Let's see if your python path is set. Try this:
image

from gametools.

stormloop avatar stormloop commented on August 17, 2024

does nothing, so i guess its not set, how do i set it? also sorry for the amount of questions, kinda new to this

from gametools.

stormloop avatar stormloop commented on August 17, 2024

ok i followed the internet and now my path should be set, python --version still doesnt do anything but python3 redirects me to the download page of python3.8 in de microsoft store, i downloaded it and path is linked, so i tried the help command again but now i get this:
-h

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

You are getting closer. You need to install the pandas module. If that version of python came with pip (pip3), you can use that to install it.

pip3 install pandas

from gametools.

stormloop avatar stormloop commented on August 17, 2024

i installed, but couldnt type again after, started new cmd and got the same error

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Did pip install not complete? If that's the case, then pandas module did not get installed and that explains the error.

from gametools.

stormloop avatar stormloop commented on August 17, 2024

ok now it worked, i was a little too quick with closing cmd it seems, i am having difficulties understanding how to use it, english isnt my first language after all...

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

It's a bit of a Swiss army knife, so I can't really sum it up for you. Do you have an object you are trying to convert to obj?

from gametools.

stormloop avatar stormloop commented on August 17, 2024

i do, but cant acces my pc atm, essentially i am trying to get models from elite dangerous ships, so the one i'll send wont be a full ship as thats the restrictions on renderdoc or tje csv file format

from gametools.

stormloop avatar stormloop commented on August 17, 2024

here is what i am trying to convert atm:
Anaconda.zip

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

I think you grabbed the projected version of the model. Can you share the renderdoc file?

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Also, I found a bug in the script, so download the latest version.

from gametools.

stormloop avatar stormloop commented on August 17, 2024

ill share in a few hours, why do you need the renderdoc and not the csv though? doesnt the csv contain all points etc.?

from gametools.

stormloop avatar stormloop commented on August 17, 2024

http://www.mediafire.com/file/12kth01wulfqf7v/CaptureAnaconda.zip/file
this is the link to the renderdoc, it was too big to just embed...

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

Take a look at this.
https://stan-bobovych.com/blog/using-raw2obj-py-part-1

from gametools.

stormloop avatar stormloop commented on August 17, 2024

ok

from gametools.

stormloop avatar stormloop commented on August 17, 2024

lmao did you make that page just now with the renderdoc i provided? thanks...

from gametools.

stormloop avatar stormloop commented on August 17, 2024

ok so... if only IDX and position columns are important, what do you do with the rest? or do you just do -position and it takes care of it yourself?

from gametools.

stormloop avatar stormloop commented on August 17, 2024

and it works, thank you very much, i honestly have no idea how you didn't give up yet, i know i asked a lot of stupid questions and still you managed to make it work... thank you very much.

from gametools.

sbobovyc avatar sbobovyc commented on August 17, 2024

No problem. I did not expect that many people to get a hold of that script, so I never wrote up any documentation. Keep on experimenting with it and if you have any questions submit another issue.

from gametools.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.