i have Freeforms (loaded STL-Files) in my scene. Now i am looking forward the best way to implement a bumpmapping feature on my scene. How can i use the Bumpmapping feature in Glscene. i have looked some demos for example bunny bump, but this use the textures or maps from the 3ds file.
Perhaps somebody has an mini turoial.
Thanks a lot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-02-16
Hello, the method that i use is the next, but as i readed, one can only import basic things from 3Ds, because that my only way is the next… one that i'm sure that you already know,
You can try to "put" a GLBumpShader and configure it as:
With BumpShader do begin
Enabled := True;
BumpOptions:= ;
BumpMethod := bmBasicARBFP;
end;
And… at the bumpmap texture (the texture must to be a purple bumpmapping colored) select this shadder, and select as Texture2Name the common texture, but it only work with the GLTextures.
Assign this texture at the wished model.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At the moment i use no shader and no materiallib, this was no problem, because i add textures to my freeform.material property. now i try the materiallib. If i add the materiallib to my freeform i get a other result as i expected. So if i add the materiallib everything on the objects has one color.
i set all propertyties of the materiallib like the materialproperties of my freeform.
i think i am to stupid? What happens here??
Thanks alot for your answer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Have you set the materiallibrary of the freeform?
Does your freeform have textures on the file when you load?
Did you set the UseMeshMaterials to true?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i have Freeforms (loaded STL-Files) in my scene. Now i am looking forward the best way to implement a bumpmapping feature on my scene. How can i use the Bumpmapping feature in Glscene. i have looked some demos for example bunny bump, but this use the textures or maps from the 3ds file.
Perhaps somebody has an mini turoial.
Thanks a lot
Hello, the method that i use is the next, but as i readed, one can only import basic things from 3Ds, because that my only way is the next… one that i'm sure that you already know,
You can try to "put" a GLBumpShader and configure it as:
With BumpShader do begin
Enabled := True;
BumpOptions:= ;
BumpMethod := bmBasicARBFP;
end;
And… at the bumpmap texture (the texture must to be a purple bumpmapping colored) select this shadder, and select as Texture2Name the common texture, but it only work with the GLTextures.
Assign this texture at the wished model.
Thanks for your answer.
At the moment i use no shader and no materiallib, this was no problem, because i add textures to my freeform.material property. now i try the materiallib. If i add the materiallib to my freeform i get a other result as i expected. So if i add the materiallib everything on the objects has one color.
i set all propertyties of the materiallib like the materialproperties of my freeform.
i think i am to stupid? What happens here??
Thanks alot for your answer.
Sorry i dont saw where i can edit a message: i have to use the materiallib now, because i want to use some shader (see post before).
Thanks
Please follow to our forum https://sourceforge.net/apps/phpbb/glscene/
Have you set the materiallibrary of the freeform?
Does your freeform have textures on the file when you load?
Did you set the UseMeshMaterials to true?