aspose-free-consulting / projects

The starting point for Aspose free consulting projects
5 stars 5 forks source link

I want to save a "screenshot" of my .obj file or of many .obj file #98

Closed Malhaudo closed 3 years ago

Malhaudo commented 3 years ago

Hi,

I want to open a .obj file, change his positions / opacity and take a screenshot save in .png file of this changements. But i get nothing on rendering.

Can you help me ?

Thanks you.

Render3DModelImageFromCamera.zip

asadalikhan90 commented 3 years ago

@Malhaudo

We are looking into your requirements and will get back to you shortly.

Malhaudo commented 3 years ago

Hello ! @asadalikhan90 thanks you.

For helping you, another person can render, i'm the only one who have a "black screen" on rendering. I don't understand. i'm having missed libraries ?

asadalikhan90 commented 3 years ago

@Malhaudo

If the model is out of the camera's frustum, the camera will not be able to see it, not all obj models are centered. So it is possible that you get nothing on rendering. We checked the Run2() method and it actually rendered a box. A skybox in 3D is usually used to represent the sky, so the camera should always be inside the skybox. Here is what it looks like on our side.

image_2020_12_16T06_58_52_310Z

Furthermore, we need to investigate how to do rendering with a better model, and this task needs more time. We recommend and request you please create a topic in our official forum where your all requirements would be investigated and appropriate feedback will be shared accordingly.

Malhaudo commented 3 years ago

@asadalikhan90 ,

My problem is that the Run2() method actually rendered nothing for me, juste a black picture, like your example in Run(). I have try a lot of changes but it changed nothing. All tries generate a black picture. If i set red background in ImageRenderOptions i'll have a red picture with nothing.

which makes me think that there is a problem with the library, it's that your example without modifications generated me a black image each time

asadalikhan90 commented 3 years ago

@Malhaudo

it's that your example without modifications generated me a black image each time

Yes, we found that our example needed to be modified to produce better results. Hence, we have modified it and added a new 3D file used for demonstration. You can please check this commit and please create a post in Aspose.3D official forum in case you face any issue.

Malhaudo commented 3 years ago

@asadalikhan90

Thanks for the update, but my problem is still there. I have used the last version you send yesterday and the same problem is there, just now it's not a "black image" but a "AliceBlue image" Render3DModelImageFromCamera

Maybe drivers problems ? i have a i5 10th without graphic cards.

asadalikhan90 commented 3 years ago

@Malhaudo

We are looking into the issue on our side and will soon update you. Furthermore, as requested earlier - please try to create a post in our official forum as this seems to be an issue with the API, and we need to investigate it properly. The ticket is already logged in our issue tracking system as THREEDNET-800. Also, you will be able to properly track the issue resolution progress if it is reported in our forum.

shahzad-latif commented 3 years ago

@Malhaudo

Please create a thread in our free support forum to track this issue properly. I'm going to close this thread.