Coder Social home page Coder Social logo

source-shader-editor's People

Contributors

biohazard90 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

source-shader-editor's Issues

(Crash)Grass Clusters CMeshBuilder::BeginModify Not Safe With Queued Material System

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.

Parallax Shader Not Working Properly on SDK2013

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?

@Biohazard90 Source Shader Editor Working, But *VERY IMPROPERLY*

-- 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.