Author Topic: Corona 9 problem with opacity in exported objects  (Read 1114 times)

2023-08-11, 12:50:53

Swavi

  • Users
  • *
  • Posts: 4
    • View Profile
i just export models from speedtree (obj format) and have this problem. how to fix?

2023-08-11, 15:45:28
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9311
  • Let's move this topic, shall we?
    • View Profile
    • My Models
You need to use opacity texture that was exported from speedtree - plug it into Corona physical or legacy material's opacity slot and the issue should be solved. You may also want to check clip option next to opacity in Corona material, that might make quite significant positive impact on rendering time, depending on how well, or bad opacity texture is authored.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-08-11, 16:09:24
Reply #2

Swavi

  • Users
  • *
  • Posts: 4
    • View Profile
You need to use opacity texture that was exported from speedtree - plug it into Corona physical or legacy material's opacity slot and the issue should be solved. You may also want to check clip option next to opacity in Corona material, that might make quite significant positive impact on rendering time, depending on how well, or bad opacity texture is authored.
But when i importing mesh from speedtree, textures do not appear in material editor
« Last Edit: 2023-08-11, 16:18:24 by Swavi »

2023-08-11, 17:05:20
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9311
  • Let's move this topic, shall we?
    • View Profile
    • My Models
How do you import the mesh? Do you use some bridge plugin that exports tree model directly from speedtree to 3ds Max, or you export it to intermediary format like FBX or OBJ and then import it to 3ds Max? If it's the former, then i'm afraid i can't help you with that, you must look into its documentation to see if it's supporting Corona materials. If it's the latter, then you can hope for Autodesk physical material at best - you will need to build proper Corona materials manually, or use third party scripts to convert from Autodesk physical to Corona physical.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-08-11, 17:35:49
Reply #4

Swavi

  • Users
  • *
  • Posts: 4
    • View Profile
How do you import the mesh? Do you use some bridge plugin that exports tree model directly from speedtree to 3ds Max, or you export it to intermediary format like FBX or OBJ and then import it to 3ds Max? If it's the former, then i'm afraid i can't help you with that, you must look into its documentation to see if it's supporting Corona materials. If it's the latter, then you can hope for Autodesk physical material at best - you will need to build proper Corona materials manually, or use third party scripts to convert from Autodesk physical to Corona physical.
Yes, something too complicated it all, I just at first export from speedtree to a folder, there and textures in png and obj and then obj drag and drop into the scene. Well thanks for the help, up to some time everything was fine, maybe I'll poke something and fix it again, or maybe it's already a problem in the scene.

2023-08-11, 18:32:13
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9311
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Make sure that there is MTL file with the same name as OBJ and also check that if option to import materials is not disabled in 3ds Max OBJ import dialog window.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2023-08-12, 18:09:57
Reply #6

Swavi

  • Users
  • *
  • Posts: 4
    • View Profile

2023-08-12, 19:37:04
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9311
  • Let's move this topic, shall we?
    • View Profile
    • My Models
FBX format can store material definitions internally, so long as you keep the textures in the same folder as FBX file, or in subfolder, proper material should be automatically created by 3ds Max importer. It will be Autodesk physical material though. If textures are located in correct place, but they does not appear in 3ds Max, that might mean that speedtree is not exporting materials with FBX file. You may need to review speedtree export settings.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures