Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - howardzzh

Pages: [1]
1
Hi guys,
    Sorry that I missed deadline twice. Hopefully, this update will make up for it.
    You can download the new device from http://www.terrainsynthesis.org/worldMachine/index.htm.
    This update includes both the seam finder, seam remover, and an example project file to show you how to use these to seamlessly merge two height fields. To be able to use the plug-in, you will also have to download some additional dll files which is also listed on the webpage.
    Meanwhile, I will start writing a detailed tutorial page about this device in a couple of days. Please let me know if you encounter any problem. Thank you.

Howard




Update 2007-08-17:

The device help page is now up.
http://www.terrainsynthesis.org/worldMachine/plugins/merger/index.htm.

2
Plugin Development Forum / Plugin: PPA ridge/valley picker
« on: July 14, 2007, 10:31:31 PM »
Hi guys,
    I've just finished the PPA ridge/valley picker plug-in for WM Pro Beta 5. It is the first part of the terrain synthesis from DEM devices that I am developping. You can download the plug-in (including a simple example) from here. To be able to use the plug-in, you will also have to download some additional dll files which is also listed on the webpage. Please let me know if there is any problem. Thank you.

3
Plugin Development Forum / Question: TextPacket output
« on: July 07, 2007, 08:36:25 PM »
Hi everyone,
    I encounted an linking error while outputing a TextPacket from a device that I am creating. The error message said that void TextPacket::setText(const char *txt) is an undefined reference. I wonder if it's because the library file wasn't included in the PDK or if the function is not defined yet.

I've temporarily bypassed this problem by defining my own inline function in the TextPacket.h to overide the default setText.

inline void TextPacket::setText(const std::string& txt)
{
   int len = txt.length();
   body = new char[len+1];
   memcpy(body, txt.c_str(), len);
   body[len] = NULL;
}

However, I could not get the "Text Output" device (which is hooked to the text output of my device) to write a file to the disk. There is no error or warning, just that the "Write output to disk" didn't do anything. Also, after the device is built, it will result an exception whenever I want to switch to either the "Layout view" or the "Explorer view". The device behaves fine if I just swith between the other views.

I wonder if I missed anything here. I would really appreciate your help if you've had similar experience. Thank you!


4
Hi guys,
     I have a really beginner's question; how do you go about debugging while write the plugin code? Is there any other way to spit out text besides the text output in the WM Pro. So far, I couldn't find any way to enable console output. I would really appreciate any help. Thank you!

5
I've just wrote a simple downsizer plugin. It's both a test for the new WM Pro PDK, and a component of some plugin I am developping right now. I don't know if the device can be useful in any meaningful ways, but since there is yet a resizer to appear in WM Pro, I thought it might be useful. I've also included the source in case you want to see yet another example (project built with VC 2003). Just put it in the Beta 5 PDK folder and you should be set.

Downsizer plugin
Source


Howard

6
I was modifying the PDK examples for some plugins I am writing when I first noticed that the plugin DLLs would cause an exception if we try to save the device in a .tmd file. I am currently developing on visual studio 2005, so it is very likely to be a compatibility issue. Don't know if it helps or not, I do notice that the exceptions always occur near the vfptr (virtual function pointer). I wonder if anyone has encountered similar issues before? I'd really appreciate any help. Thanks!

Pages: [1]