WorldViz User Forum  

Go Back   WorldViz User Forum > Plug-in development

Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
Old 03-17-2010, 09:14 AM
Joran Joran is offline
Join Date: Jun 2006
Posts: 38
Send a message via Yahoo to Joran
Setting dataSize for the modifier plugin


I started developing my first modifier plugin for Vizard (see So what I am making is a modifier that gets the depth buffer information from a Camera. I have it working okay, the only part left is returning the data to the python script.

At the moment I use a fixed size texture (say 8 by 8). And I set the dataSize to 8 * 8 in the InitModifier procedure. As far as I understand each instance of the modifier will get it's own buffer of 64 floats. But I want to have a different texturesizes, which leads to a different dataSize for each instance. Is there some way to do this? Can I just change the dataSize, free up the data field and allocate a new buffer in the PerformModifier procedure?

Greetings, Joran.
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Vizard Sensor Plugin farshizzo Plug-in development 25 08-01-2019 12:24 AM
Could not find plugin to load objects... halley Vizard 1 05-30-2006 11:01 AM

All times are GMT -7. The time now is 11:57 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC