PnP TerrainCreator - Forum

The PnP TerrainCreator Forum
It is currently Sat Nov 18, 2017 9:57 am

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Brush Plugin
PostPosted: Mon Sep 04, 2006 7:24 pm 
Offline

Joined: Sun Sep 03, 2006 2:43 pm
Posts: 7
hi,

i'm investigate about a brush plugin and have some question :

General : i've rebuild one sample with VC ++ 2005 and got some errors. Did the sdk works with VC++ 2005 ?

Plugin :
2 way of working for me as it seems.
Completly doing my brush tools. The problem will be i will not used brush Pnp and have no effect (like falloff).
Used Pnp Brush. In that case i see in documentation :
Quote:
Remarks: The difference between a brush and a selection object is the following:
A selection contains single separated heightmap elements.
A brush will internally be created from a selection by aggregating all heightmap elements around the selected heightmap elements.
So a brush is a region (or maybe several separated regions) of heightmap elements


But also see in the same page :
Quote:
For the editing process of a heightmap it is possible for the user to select an almost arbitrary number of heightmap elements (To be supported in future versions).


What is the status actually ? is brush is a part of selection01 ?


PS : For information i'm a beginner in C++ but i want to have more brush style then ....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 10:20 pm 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
Uups, you're right. There is currently no way to generate own brushes. That's still on the todo list. I forgot about that as I suggested you to create an own brush tool. Sorry for that.

What you can do is adapt the standard fall off effects in a way that they simulate a different shape of the brush.

We planned to improve the selection tools after the next release (so for release 1.1.11). The following is planned: you will be able to select more than one heightmap element at the same time. The brush shape and size will be laid around each of the selected heightmap elements. So you can have very complex shapes for heightmap manipulation.

I have not yet tested it on VS2005. What errors do you get?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 11:17 pm 
Offline

Joined: Sun Sep 03, 2006 2:43 pm
Posts: 7
u're not kind with me :).

ok, i've try to build PnPTCStepFallOffPlugIn

One error was just an int forgotten in a for ... next loop (dont remember which one.

Others error as follow :

Quote:
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(68) : error C2059: syntax error : '__declspec(dllexport)'
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(69) : error C2143: syntax error : missing ';' before '{'
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(69) : error C2447: '{' : missing function header (old-style formal list?)
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(90) : error C2059: syntax error : '__declspec(dllexport)'
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(91) : error C2143: syntax error : missing ';' before '{'
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(91) : error C2447: '{' : missing function header (old-style formal list?)
c:\program files\pnp terraincreator\plugin sdk\samples\pnptcstepfalloffplugin\pnptcstepfalloffplugin.cpp(158) : warning C4244: 'return' : conversion from 'LRESULT' to 'BOOL', possible loss of data


concern :

Quote:
/// Returns the name of this plugin.
/// @return Null-terminated character string containing
/// the plugin's name.
char* __declspec(dllexport) CALLBACK GetPlugInName()
{
// return name
return EFFECTPLUGIN_NAME;
}

for the 3 fisrt messages.

THEN
next 3 messages
Quote:
/// Get an instance of the plugin
/// @return Returns a pointer to the create plugin.<br>
/// Return <i>NULL</i> if the plugin could not be created.
IPnPTCPlugIn* __declspec(dllexport) CALLBACK CreatePlugin()
{
// create and return the plugin pointer
return new CPnPTCStepFallOffPlugIn;
}


AND THE LAST ONE :
for

Quote:
BOOL CALLBACK DialogProc(HWND hwndDlg,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
// call default window proc
return (DefWindowProc(hwndDlg, uMsg, wParam, lParam));
}
[/quote]

Not sure i can do it. I need to have a
virtual bool CIPnPTCBrush01:: SETElement to put the new one in the brush. I will see for an other method


Last edited by Amiral_l on Mon Sep 04, 2006 11:26 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 04, 2006 11:25 pm 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
Well, seems as if I should take a look at VS2005 :)
Thanks for the info.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 8:49 am 
Offline
Programmierdochfix
User avatar

Joined: Tue Apr 27, 2004 12:53 pm
Posts: 892
Location: Braunschweig
If you like, you can use the new beta version of the SDK and the editor. The SDK now has project files which work for VS2005.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron