biohazard90 / source-shader-editor Goto Github PK
View Code? Open in Web Editor NEWShader Editor for the Source Engine
License: Other
Shader Editor for the Source Engine
License: Other
When using the multi-threaded queued materialsystem (mat_queue_mode -1, which is default in SDK2013) and modifying the grass mesh in the CGrassClusterManager::InjectMorph with CMeshBuilder's BeginModify function, there's a potential for a crash. On Windows it doesn't really happen, but on Linux/Mac it's an instant crash.
The way to handle this is to use the render context's call queue.
Here's some pseudo-code as to what that might look like.
CMatRenderContextPtr pRenderContext( materials );
ICallQueue *pCallQueue = pRenderContext->GetCallQueue();
if ( pCallQueue )
pCallQueue->QueueCall( this, &CGrassClusterManager::SomeThreadSafeMorphFunc );
else
DoSingleThreadedMorph()
You'll also want a mutex to lock using AUTO_LOCK or something to protect access to the cluster data/grass mesh.
I'm working on something like this, so I may do a pull request even though this project is dead, but I figured I'd post this issue in case somebody finds this and cares about it.
Hello there, I kind of doubt you bother with this codebase anymore, but just in case, I'm interested in getting the parallax shader that comes with this working under SDK2013. It seems to work perfectly fine under Source 2007. (With some alpha issues)
However, under Source 2013 parallax gets rather distorted and stretchy. It does seem to respond to which direction you are looking, but it's definitely not doing it properly as you can see here http://i.imgur.com/5OWiwmD.jpg
However in the shader preview, it looks perfectly normal. Any idea on why that might be?
-- CLOSED --
As You Can See Here @Biohazard90 , I have The Shader Editor Working But Instead Of The Result That Should Happen, I'm Getting A Color Spectrum. I Am Using Source SDK 2013 For Both Projects And Followed Both Of Your Tutorials On Setup, Valve Developer Wiki And This Repository's Tutorial. Also Great Tool. I Tried The Stand Alone Demo, I Can See People Using This For Great Games.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.