rudeypunk

rudeypunk

About Me

Expertise
Not Specified
Location
Not Specified
Website

Connect

Recent Forum Posts

Instructions for writing Custom Viewport Shaders Oct. 13, 2019, 8:31 p.m.

I'll be sending this message to the Houdini Teacher's slack in the morning but I thought I would also address the entire user's community.

I'm teaching a university level class in Real-time Visual Effects and I'd like to create a color calculator for my students using Houdini. I could get by, initially, by just using Python and performing operations on simple colored swatches in the Houdini viewport. However, since this is a VFX course, I would like to perform operations,(+, *, exp, burn, dodge, etc.), on swatches containing texture maps. I'm note quite sure how to pull this off using Python, or VEX for that matter. I think I might be able to do this writing a custom viewport shader in GLSL.

I think I should be able to pull this off since I teach a basic version of HLSL which is pretty close to GLSL. However I'm having trouble understanding how to get two different sources inputted into the shader. I'm currently following documentation from http://127.0.0.1:48626/shade/glsl. [127.0.0.1] However, this only offers the basic description of the shader's structure and function calls.

Can someone suggest some documentation or some other resource I can explore this topic a bit more?
Or if anyone has any ideas how I can accomplish this using Python, VEX, or some other technique I would love to hear.

Cheers

How to show simple PySide window in Houdini Apprentice? Oct. 6, 2019, 1:09 a.m.

I accidentally bumped into this solution that just may be a suitable substitute.
Instead of creating just call to a QT widget in Python shelf tool, I tried to create a Python Panel
and it worked like a charm!

import hou
from PySide2 import QtCore, QtUiTools, QtWidgets
 
def onCreateInterface():
    global theMainWidget
    
    ui_file_path = 'D:/TAHB/images/RTVFX/RTVFX/testInterface.ui'
    loader = QtUiTools.QUiLoader()
    ui_file = QtCore.QFile(ui_file_path)
    ui_file.open(QtCore.QFile.ReadOnly)
    theMainWidget = loader.load(ui_file)
    
    return theMainWidget

Not overly complicated. No comes the complicated part of hooking things up

PDG Embedded within HDA Oct. 6, 2019, 12:05 a.m.

This a great suggestion!
Thank you very much!

Not sure why I didn't think of that

Cheers!