New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manual docs edits - HLMS block reference guides #233
Conversation
Start of a PR to add reference documentation for all of the HLMS blocks. Not sure I understand how the manual links work so this commit is just to make sure I'm on the right track.
|
It comes from
Later gets reused by the Linux doc. The exact syntax I don't remember. I always have to consult the Doxygen docs on how it works
If the GPU samples the texture and determines it should use e.g. LOD 1 but min_lod is 3, then it will use LOD 3. Likewise if it wants to use LOD 8 but max lod is 6, then it will use 6 I.e. it gets clamped. I can't think of any use case for it other than when loading textures progressively, you can limit which LODs are available. Some Antialiasing techniques may want to limit max lod This setting gets sent to the API directly. For more info see D3D11 docs (ir Vulkan, Metal's, OpenGL's; it's pretty much the same everywhere). |
That makes sense. I was reading the Ogre 13 manual to help my understanding and from what I saw, it used "lod" in reference to mesh lods. In the OgreNext context, this didn't make sense to me becuase a sampler block was about defining texture usage. Few more clarifactions:
|
Added reference guides for - blendblocks - datablocks - macroblocks - samplerblock
@darksylinc How do these commits look to you? Thats all I was going to add for the moment. |
Added reference guides for Terra and Unlit datablocks.
|
Yes. It's due to both backwards compatibility and user friendliness.
However with JSON:
Yes. That's the idea: all types of datablocks should share macro- and blendblocks (and samplerblocks too)
Looks like a bug. Unlit is supposed to accept both |
Is this ready for review and merge? |
Yep. Am I supposed to mark them as such? |
Ah ok! No need. I wasn't sure if there was more to be done. |
Actually, if you have anything to say about these:
|
In api/html/hlmspbsdatablockref.html it appears malformed Markdown causes everything to become bold:
Likewise |
That's a bug. We support refractions (although requires special Compositor setup).Samples/2.0/ApiUsage/Refractions shows it in action
I have a lot of code I worked for a client for auto-generating beautiful materials; but I haven't been approved to release it yet (hasn't been in a while... there was a plan but...). |
@darksylinc I just rebuilt the documents from my PR and I don't have the issues you describe above:
Picture as built on my machine:
Picture as built on my machine:
|
@eugenegff, @jwwalker, sorry to annoy you both. Could someone test this commit and see if your getting the formatting issues that darksylinc was getting above? Just trying to track down where the problem is. |
@oldmanauz I'm not sure why you named me, I'm kind of a newbie to Ogre, but I gave it a try... I pulled your changes and ran doxygen, but I can't find the page you're looking at, or even any "Reference Guide" section. |
@jwwalker I saw that you had been one of the recent active people contributing a PR. In the documentation > Manual > HLMS: High level material system > Blocks menu > The related menu items are circled in red below: |
@oldmanauz Yes, the 2 things you ask about look OK for me. (I couldn't find them before because my html.cfg was out of date.) |
@jwwalker thanks a lot for taking a look. I appreciate it. |
@darksylinc are you interested in this PR still or want me to remove it? |
I noticed today this PR hadn't been merged yet. I'll be taking a look tomorrow. I think I'm gonna merge it and then fix whatever inaccuracy or problem it has as we go. |
@darksylinc Thanks. I'll look for problems after the merge. Can you please merge #246 as well, but please merge this one first as it will conflict otherwise. |
Start of a PR to add reference documentation for all of the HLMS blocks. Not sure I understand how the manual links work so this commit is just to make sure I'm on the right track.