Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello everyone,

 

I have implemented a obj file for the rendering of my block but the OBJLoader seems to only register the first part and ignoring the others three. I am very need to all this so I don't know how to modify obj file to let it work.

I put here the rendering of my block and the rendering that I wanted with blockbench.

Capture.PNG.cfabc6ab651bcddc671dcc1e878b70e9.PNG

what I want

2020-04-04_23_32_18.png.6bbe528cd80a0f6b4a5929040d61c5dd.png

what I get...

Hi

Try setting a breakpoint in OBJModel or OBJLoader and watching what happens during the parsing of your obj file.

The OBJ file format is very simple, you can open it in Notepad.  A quick google will show you how to understand it.

 

My first thoughts -

Is your file a single object or four separate parts?  

Are the faces on the three arms inside out?

 

-TGG

  • Author
8 hours ago, TheGreyGhost said:

 

Try setting a breakpoint in OBJModel or OBJLoader

yes that is very good idea I have done it and it looks like it is reading the v part and the vn part of each part but it is reading all vertex for one of the not displayed part and I don't understand why it is not considering the others part. On the other hand I don't know why I need to move my block origin in blockbench to 8 8 8 instead of doing it with normal origin at 0 0 0. For further information I give you the obj file here (turn_stile_main.obj) and the followed json file model associated (turn_stile_main_0.json)

 

turn_stile_main_0.obj turn_stile_main_0.json

  • Author

I don't know why but I change the order of the different part of the obj model and it works :

2020-04-05_11_38_32.png.d55c861c301ca03e9dfe847604ff4f67.png

maybe it is due to placement of block

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.