CADRays is not showing any textures? (files uploaded)

Hello I have CADRays on my both 2 pc's but no one is showing any kind of texture. Why I can't understand. I tried so many textures (png/jpeg) and so many models but its not showing. Is there is a solution? and I am not one person having this kind of problem.

Dmitrii Pasukhin's picture

Hello, yes. Problem is a common problem. There can be some specific problem with 3rd-party or some internal bug. Could you share a little more details?

We plan to update CADRays.

Best regards, Dmitrii.

I am rejecting all deals Momo's picture

Are you really? I am so happy because of heard this. CADRays is my favorite rendering software. Its very easy to use and It gives very nice images. What kind of updates do you planning to add? And new version also be free no?

Dmitrii Pasukhin's picture

Yes,it continues to be free.

Just to make it up-to-date with last version. Now we collect bugs and another suggestions.

Best regards, Dimitrii.

I am rejecting all deals Momo's picture

Thats great! From where I can say what we want to see in CADRays?
And are you planning to add new features or just new OCCT version and some bugfixes ?

Dmitrii Pasukhin's picture

Oh, I check the history, the most reporter of bug - is you. And you never share any scenarios and code. Please share as much as possible details, including 3rd-party versions and occt version.

Best regards, Dmitrii.

I am rejecting all deals Momo's picture

Yes becasue I can't find any solution. I shared scenarios no? But it doesnt works in any scenario also. I tried my old models which have textures, I tried new models, new textures but nothing changes. I have just CADRays which one is OCCT gives. CADRays 1.0.0

Dmitrii Pasukhin's picture

Are you taking about STEP only?

I  update CADRays with occt 7.8.0 and read obj file and everytinh is fine (texture is visible)

Best regards, Dmitrii.

I am rejecting all deals Momo's picture

Yes I am working with step files but is it important? Because CADRays save models as .brep files.
And from where I can get new CADRays?
And from where I can say my ideas about CADRays?
But thank you! You are the first person of trying to make CADRays better

Dmitrii Pasukhin's picture

Dowloads will be later. Now just preparion process.

Could you explain your scenarious? You import -> export -> import ? Why are you using .brep?

But as for a RayTrays you are free to use CAD Assistant - Open Cascade

There is the same ability to save as image and configure scene.

Best regards, Dmitrii.

I am rejecting all deals Momo's picture

No I am not using .brep but when I use .step file and export my render to CADRays script it saves model as brep this I am telling. If its saving as brep it doesnt matter if I am using obj or step no?
And CAD asistant is more complicated. I learned CADRays myself but cad assistant is harder. Is there is a tutorial for it?

My scenarios:
-I have model in my CAD program. I am exporting them as a .step file
-I am opening cadrays and importing step files.
-After that I am trying to add texture png/jpeg but it doesnt affect.

Other scenarios:
-I have old CADRays Script exported CADRays render files with all files. (It have texture)
-I am importing it but textures are not showing

I am rejecting all deals Momo's picture

Example is here.

gkv311 n's picture

Sorry, cannot say why it doesn't work - I cannot apply textures in CADRays as well. It should be some bug, I guess...

The texture works if you run script in DRAW using OCCT 7.6:

set Root [file dirname [file normalize [info script]]]

pload VISUALIZATION MODELING
vinit View1

# Restore exported shapes
restore $Root/shapes/Resim1/Resim1_4.brep Resim1_4

# Setup object 'Resim1_4'
vdisplay Resim1_4 -noupdate -dispMode 1
vfit
vrenderparams -raytrace 1 -gi 1

vtexture Resim1_4 "$Root/textures/images.jpg"
vsetmaterial Resim1_4 Brass -noupdate
vbsdf Resim1_4 -Kc 0 0 0 -noupdate
vbsdf Resim1_4 -Kd 0.8 0.8 0.8 -noupdate
vbsdf Resim1_4 -Ks 0 0 0 -noupdate
vbsdf Resim1_4 -Kt 0 0 0 -noupdate
vbsdf Resim1_4 -baseRoughness 0 -noupdate
vbsdf Resim1_4 -coatRoughness 0 -noupdate
vbsdf Resim1_4 -Le 0 0 0 -noupdate
vbsdf Resim1_4 -absorpColor 0 0 0 -noupdate
vbsdf Resim1_4 -absorpCoeff 0 -noupdate
vbsdf Resim1_4 -coatFresnel Constant 0 -noupdate
vbsdf Resim1_4 -baseFresnel Constant 1 -noupdate
vlocation Resim1_4 -rotation 0 0 0 1

# Restore view parameters
vcamera -orthographic 
vcamera -distance 6079.59
vviewparams -proj -0.640313 -0.614828 0.460419
vviewparams -up 0.355397 0.294252 0.887192
vviewparams -at 10.5043 -2.80413 26.9516
vviewparams -eye -3882.34 -3740.71 2826.11
vviewparams -size 145.814

# Restore environment map
vtextureenv on $Root/textures/backg.png

# Restore light source parameters
vlight clear
vlight l0 -type amblight  -display
vlight l1 -type directional -direction 0.421097 0.467676 -0.777146 -smoothness 0.331613 -intensity 10 -color 1 1 1 -display
vlight l2 -type directional -direction 0.53366 -0.463904 -0.707107 -smoothness 0.200713 -intensity 20 -color 1 1 1 -display
vlight l3 -type directional -direction 0.571972 -0.371443 -0.731354 -smoothness 0.593412 -intensity 20 -color 1e-06 9.9999e-07 9.9999e-07 -display
vlight l4 -type directional -direction 0.571972 -0.371443 -0.731354 -smoothness 0.366519 -intensity 20 -color 0.0425532 0.0425528 0.0425528 -display

#vfps
vrepaint -cont

image

I am rejecting all deals Momo's picture

so we dont have any solution?

Dmitrii Pasukhin's picture

Oh, I get you. You using "Export script" functionality.

Yes, it is using brep. Please be more clear when you taling only about using script. The problem with script itself.

Your texture folder it empty? brep used as a simpler shape, texture attached from texture folder.

Best regards, Dmitrii.

I am rejecting all deals Momo's picture

No texture folder is not empty. I thinked maybe because of some special characters this error but no. I tride just a.png or a.jpg also but still doesnt work for me

I am rejecting all deals Momo's picture

I am using script for saving my scenes for later use. Because sometimes I need use same scene for another model.