Skip to content
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

GLSL 330 shaders #1726

Conversation

simonschmeisser
Copy link
Contributor

This comes with a lot of hubris and a lack of fundamental knowledge so please be patient and don't hold back anything that comes up when you see this lame attempt ...

Also this is a WIP of course, a proper solution would either try to add 330 besides 150 in proper folders or remove 150 altogether.

I'm trying to fix #1721 and just noticed your parallel attempt @rhaschke

This was verified with GPUpad syntactically but I could not get neither gpupad nor rviz to render anything (or not crash in the case of rviz ...)

@paroj may I ask you for help here or in #1725

@simonschmeisser
Copy link
Contributor Author

I was taking some information from https://ogrecave.github.io/ogre/api/latest/_high-level-_programs.html

Comment on lines -22 to +24
in gl_PerVertex {
vec4 gl_Position;
vec4 gl_FrontColor;
} gl_in[];
in PerVertex {
vec4 frontColor;
} gs_in[];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are the only strictly necessary changes in this PR

@rhaschke
Copy link
Contributor

@simonschmeisser, GPUpad seems to be an interesting tool to develop the GLSL scripts.
However, I couldn't find an option to save a whole session (like the examples). Did you?

@simonschmeisser
Copy link
Contributor Author

Simply File > Save as It mostly references external files though. So you first need to save all of the scripts and then the project

@rhaschke
Copy link
Contributor

I found how to save individual files - of course. But, I don't see an option to save the session or project as you call it.
This means, I need to assemble the pipeline from scratch each time...

@simonschmeisser
Copy link
Contributor Author

simonschmeisser commented Mar 18, 2022

image
Using 1.23.1 Appimage

Seems to be based on where your focus is. Click the Session pane and it will allow you to save the session. Click the text editor and the menu will save the text file/shader

@rhaschke
Copy link
Contributor

Hm. I'm able to save a newly created session. But I cannot save (as) an example session?

@rhaschke
Copy link
Contributor

Closing in favor of #1725, which seems to work with Mesa (and a hack in OGRE).

@rhaschke rhaschke closed this Mar 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mesa 21 without Mesa workaround incorrectly renders PointCloud2
3 participants