-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting a new furniture model and XML questions #9
Comments
Hello, here is the short answer:
Here is an explanation of the scripts. Try checking out the We will update the documentation very soon for an in-depth tutorial on the conversion. We can post a video tutorial as well if it is helpful. Please let me know if you have more detailed questions! |
Hi Hueds, I am trying to add my own furniture model as well. I have already written my semi-complete xml file. However I am struggling to open the xml file in Unity Editor, as I cannot find xmlTools under Window on the toolbar. Can you clarify? Thank you! |
Hi, what branch are you using? Maybe some unity script code has changed since then so it no longer shows up. Can you try checking out the dev branch to a commit around Feb 9, 2020, and try reloading the unity editor? You may need to add xmlTools as a script into unity first as well. I am not familiar with the new changes, maybe @youngwoon can comment on this? |
I've checked out the dev branch, but maybe my issue is that I'm opening Unity Editor through Finder. Are there any scripts that I am supposed to run to open the Unity Editor? |
No, opening the Unity Editor is fine. Did you download the correct version of Unity? |
"You may need to add xmlTools as a script into unity first as well." Sorry I didn't see this. Where can I find the xmlTools script? In xml_adjusting folder I see pycache/init.cpython-37.pyc and rescale.cpython-37.pyc |
If you check out the furniture unity package in dev, there is an xmlTools script in the script folder. When you import the furniture-unity package on the unity editor, it should load this. https://github.com/clvrai/furniture/tree/dev/furniture-unity/Assets/Scripts |
Yes I found the xmltools script, thank you. But to load the furniture-unity package, am I not looking for .unitypackage files? I can't find any of such files. |
From what I remember, you can just select the furniture-unity folder as the project folder for the unity editor. |
Yes I did that, but all that I see under Assets > Scenes is just SampleScene. I should be able to find the scripts under Assets right on the unity editor right |
Hmm, my memory is a bit fuzzy. I thought there was some Scripts menu in the menu bar on top of the screen somewhere. Another thing to try is if you load the SampleScene, maybe the xmlTools script is associated with that scene. I will take a look this weekend if you cannot find the script. |
Yea that would be much appreciated hueds! Perhaps a screen recording if possible. |
I was able to open the unity editor, and see the xmltools pane. Can you click the window option on the menubar? |
Hi Hueds thanks for your help! I can now access xmlTools. Should I select any of the options, or it doesn't really matter?
Next I figure I should import the model, but when I select "Import model", I receive the following exception: NullReferenceException: Object reference not set to an instance of an object Is there anything that I should change in xmlTool.cs? Currently I have my xml file structured as follows:
|
Hueds please ignore my earlier comment. I am able to(somewhat) generate the sites. However I cannot find xml_adjusting/color_sites.py. Do you mean furniture/xml_adjusting/xml_edit.py? Thanks! |
Hi, that seems correct. from what i remember, color sites would go through the xml file, and add a different color to each conn_site. |
Hello,
I want to add a new furniture model. I have read docs and examined several utility files in the environment. However, I couldn't find answers to the questions below.
As I understood from docs, I need a .stl file for each part and one XML file. I decided to use Blender to split my own object into several stl parts, however I don't know whether I should write XML manually or not.
I have some questions related to XML creation.
For example, in the chair_bernhard_0146.xml below. (Converting a New Furniture Model)
How do you decide the numbers of site's (corner_site1,corner_site2 ...) for each body?
If there is a script or tool to form XML files, I will be very happy if you can share with us.
There are some files in
furniture/blob/dev/env/xml_adjusting/
directory.I didn't figure out how to use them correctly.Because in addition to position and other details,
rescaling is also important and hard to do with hand.
Thank you for your time.
The text was updated successfully, but these errors were encountered: