Comments (7)
did you see the parameter mapping of specular here: https://ogrecave.github.io/ogre/api/latest/rtss.html#autotoc_md255 ?
as you set roughness=1.0, your material should be just slightly darker compared to blinn phong.
Also verify that the RTSS is active for your viewport (in case you are on D3D9 or GL1)
from ogre.
-
What should I check for in parameter mapping exactly? This is what it says:
By default, roughness is read from specular[0] and metalness from specular[1].
-
Also verify that the RTSS is active for your viewport (in case you are on D3D9 or GL1) --
how do I check this? -
I wanted to post this ogre forum but my gmail id isn't being accepted for registration. I keep getting this:
verification mail delivery to gmail currently broken
The solution you provided was incorrect
from ogre.
What should I check for in parameter mapping exactly?
your specular[0] and specular[1] values, which are both 1.0 as you posted above
how do I check this?
you should a snippet like this in your code:
ogre/Samples/Simple/include/PBR.h
Lines 42 to 43 in 2b1864e
I wanted to post this ogre forum but my gmail id isn't being accepted for registration. I keep getting this:
gmail just does not work. we are aware of this #2924
from ogre.
Unfotunately it still doesn't work :( Should I be looking out for something else?
from ogre.
does it work if you modify one of the materials used in the PBR sample that is referenced above?
from ogre.
So it works for me now.
What I was doing earlier:
material Electrode
{
technique
{
pass
{
specular 0.5 0.5 0.2 64
rtshader_system
{
lighting_stage metal_roughness
}
diffuse 0.7 0.7 0.7 1.0
}
}
}
auto mat = Ogre::MaterialManager::getSingleton().getByName("Electrode", ogreResources::RESOURCE_GROUP)->clone(newMatName);
mat->setDiffuse(this->definition_.display.color);
entity->setMaterial(mat)
I was doing this so that I can set the metallic properties for all electrodes in my scene, but set the diffuse properties per electrode type. So I create a clone and set diffuse properties for the cloned material.
Somehow this doesn't work to set metal properties of the material.
If I do this, however,
auto mat = Ogre::MaterialManager::getSingleton().getByName("Electrode", ogreResources::RESOURCE_GROUP);
entity->setMaterial(mat)
so not use a clone, but the original material, it works.
Do you know why?
from ogre.
you must explicitly clone the RTSS parts, see:
ogre/Tests/VisualTests/PlayPen/src/PlayPenTests.cpp
Lines 6977 to 6981 in 4acf489
from ogre.
Related Issues (20)
- Error creating texture: Invalid call with DDS cubemap and DirectX9 HOT 8
- Ogre14: Monospace Fonts Not Monospaced HOT 2
- convert PlayPen_BillboardTextureCoords to unit test
- Completion of error handling HOT 7
- Issue render with Ogre3D and Pure OpenGL (QOpenGLWidget) in 2 separete QWidget within a Qt Application HOT 1
- GLSLang plugin does not compile with glslang v14 HOT 2
- Problem with anti-aliasing and render to texture HOT 3
- Assimp plugin Critical error detected c0000374 Thread 1 received signal SIGTRAP, Trace/breakpoint trap HOT 7
- Create ImGui based ConfigDialog
- Python3 stable ABI
- [BUG Report] Is SAFE_DELETE modified erroneously? HOT 1
- [Crash Report] overflow access in D3D11HLSLProgram::buildConstantDefinitions() HOT 2
- [Crash report] Dirty data in cache.bin caused SampleBrowser crash
- 14.2.0 forces wrong GL system HOT 2
- FreeImage arbitrary code execution vulnerability HOT 2
- ImGUI is no longer optional for OGRE Bites. HOT 2
- `OgreMeshUpgrader` and `OgreXMLConverter` have empty time in log HOT 3
- Potential leak with techniques returned in Ogre::MaterialManager::Listener HOT 2
- Does OGRE support texture packing? HOT 4
- Material Pass pointAttenuation not working as expected HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogre.