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

Hi there,

 

I want to use my custom 3D Models I created, but I don't understand how to render and bake custom 3D OBJ Models, or if it is even possible.

 

Here is what I got so far:

public class BakeHandler {
	
	public BakeHandler() {
		OBJLoader.INSTANCE.addDomain(HelicopterMod.MOD_ID);
	}
	
	@SubscribeEvent
	public void onModelBake(ModelBakeEvent event)
	{
	    try
	    {	    	
	        IUnbakedModel model = OBJLoader.INSTANCE.loadModel(new ResourceLocation(HelicopterMod.MOD_ID, "models/entity/helicopter_tris.obj"));
	        //model.bake(bakery, spriteGetter, sprite, format);
	        
	    } catch (Exception e)
	    {
	        e.printStackTrace();
	    }
	}
}

 

I simply don't know where to continue now, as I don't find any currently working example or explanation. 

 

Does anyone of you guys know an example I can look at, or a good explanation on how to use OBJ models for entities?

 

Would appreciate any help :D

 

I made a post about this topic not too long ago. You can find it here: 


Hopefully you'll be able to figure it out by poking through there.

  • Author
On 9/18/2019 at 5:10 AM, TheMikeste1 said:

I made a post about this topic not too long ago. You can find it here: 


Hopefully you'll be able to figure it out by poking through there.

Oh thanks. Got a solution by now, i just made my own file format and parsed the object to textured quads ;D

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.