Work in progress.

Notes:

  • Spiritual successor to 3DObject
  • SDK V2 supported
  • Renders 3D models (using glb files)
  • Requires webgl2 - set in C3 editor and in project settings

Features:

  • Render  3D model w/ PBR textures
  • Lighting (8 lights) - only rendera objects (for now)
  • Shadows (can be enabled for each light, only rendera objects cast shadow)
  • Enable, disable node

Usage:

  • One global object: rendera (controls loading glb model, lighting)
  • World object, instances
    • Can create model per instance
    • Control animation and movement
    • C3 behaviors can control position, rotation
    • Enable, disable nodes
  • Light object, instances
    • Control light position through object position
    • Control light type (use spotlight for now)
    • Control cast of shadows or not

Perf suggestions: 

  • Only use 1 or 2 hero shadows, experiment adding others for specific effects
  • Minimize bones, polys

Working with the esteemed Foozle, who has been working on a 3d editor for C3. Currently rendera controller just renders a placeholder sprite with the glb name in the editor.

Looking for feedback on Minimum Viable Project, what are the minimum additional ACEs or features to make a shippable C3 3D game in your style? This is not a 'wishlist' it is what features are required for shipping a 3D game using rendera? Thanks for checking this project out. Leave MVP 'requirements' in comments.

Updated 5 days ago
StatusIn development
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(3 total ratings)
Authorkindeyegames
Made withConstruct

Download

Download NowName your own price

Click download now to get access to the following files:

rendera-control-1-0-0.c3addon 23 kB
rendera-1-0-0.c3addon 381 kB
RenderaControl.c3p 24 MB
RenderaControl (6).zip 24 MB
rendera-control-1.1.0.c3addon 12 kB
rendera_1.1.0.c3addon 328 kB
rendera-control-1.2.0.c3addon 13 kB
rendera-control-1.3.0.c3addon 13 kB
rendera-control-1.5.0.c3addon 14 kB
rendera_1.2.0.c3addon 330 kB
rendera-control-1.6.0.c3addon 15 kB
rendera_1.3.0.c3addon 331 kB
rendera-control-1.6.2.c3addon 459 kB
rendera-light-1.0-0.c3addon 10 kB
rendera-1-4-0.c3addon 335 kB
RenderLightControl.c3p 78 MB
rendera-control-1.7.0.c3addon 459 kB
rendera-light-1.1-0.c3addon 10 kB
RenderaLight.c3p 78 MB
rendera_1.5.0.c3addon 340 kB
rendera_1.6.0.c3addon 340 kB
rendera-control-1.8.0.c3addon 459 kB

Development log

View all posts

Comments

Log in with itch.io to leave a comment.

I get this error when trying to load a glb with skeleton animations. 

actions.js:122  [rendera] Failed to load model Objectid: "Player.glb"[[Prototype]]: Object Player.glb Objectcode: "INVALID_DATA"message: "Unsupported attribute semantic: TEXCOORD_1"modelId: undefinedname: "ModelError"[[Prototype]]: Object

I have already tested different models and they all get this error. Files without animation are working fine.

I use animated models too and they work. Can you send a link to one of your files that does not work?

I’m having some crashes when trying to use the plugin. It usually happens when I add a new RenderaController in your “RenderaLight.cp3”. Sometimes it also crashes when I try to close the project through the Construct menu.

I’ve uploaded a file with the model that for some reason doesn’t load, and also a screenshot of the crashes I’m getting.

Drive Folder

(1 edit)

Thanks for the example, try the new one.

I am now ignoring TEXCOORD_1, TEXCOORD_2 (they are typically game specific)

Also for now don't use worker animation, some work to be done there.

I open the example project and everything seems to work, but when I try adding it to my own project, I don't get the 3d options and such underneath the renderacontroller properties

Not sure, try the latest? You need rendera and renderacontroller in your project

Great stuff! I’m really confused about how the scaling works, sometimes I have a large object in the editor, but when I preview it in-game, it appears really small. Am I missing something? 

same here... 

The model is not displayed.

I don't understand what to do. There are no examples. 

Try RenderaControl.c3p listed above. This is WIP.

(1 edit)

By the way, I can't get it working - just empty layout and a console full of errors like this:

index.js:14565 Uncaught (in promise) TypeError: this.gl.bindBufferBase is not a function at GPUResourceManager.initializeBoneUB

I've tried the latest C3 and r449 as well (where 3DObject works fine and I'm using it with this version)

Also, what is the purpose of "3D editor" coming with this plugin?

Make sure everything is set to use webgl2, not webgpu project and editor

Yeah, my editor was set to WebGL1, sorry for bothering you. Thanks for your work!

(2 edits)

Wow, wow! The most anticipated (and most needed actually) plugin for C3! You guys rock!

MVP 'requirements' (I can think of):

  • Load and render 3D models
  • Play/Change animations
  • Change textures in runtime
  • Enable/Disable nodes

Thanks for your mvp comments.

(1 edit)

I agree that changing textures mid game is a necessity. My tank game allows sprites to be used to change the team color and damage state.


oooo.

I will play around with it.

The static for glbs that do not have animations to improve performance.

grande!!!

Woohoo! Nice!

Great stuff!