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.


Messages - lwiseman

Pages: [1]
1
Bug Reports and Help / Re: Sand/Desert Dunes - Better chains?
« on: June 25, 2012, 01:35:49 AM »
Maybe something like attached?

2
Feature Requests / Re: New filter "Rotator" for Cryengine
« on: April 18, 2012, 11:44:25 AM »
It's got some problems, but try this.

3
Bug Reports and Help / Re: importing 3ds object in world machine ?
« on: December 31, 2011, 12:33:10 PM »
World Machine works with heightmaps which only have one height value for a specific point. So about the best you could do is convert your 3ds model into a heightmap and combine it with your world in WM. What I did (in Google SketchUp) was to setup an orthographic camera projection and export two images, a full-color image and another with the object textured in a white-to-black gradient. Then I made a macro that combines a world heightmap and colormap with the model heightmap and colormap I just made. Viola, the macro outputs the same world heightmap and colormap, just with the object scaled and placed on it.

I attached an example of a model heightmap and colormap to better see what I'm talking about. Some models will lose more data than others in the process.

4
General Discussion / Re: How to increase no# of Terraces within a range
« on: December 15, 2011, 01:03:48 AM »
Challenge accepted:



I actually did it two ways because I couldn't seem to get a macro setup that I was happy with, but there's probably a better way.

The main issues I kept bumping into seemed mostly related to texturing. For example, the textures are made from a colorized heightmap that is unique from the other heightmaps. This clutered device ports so I considered making the Map Close device only take the full range heightmap, base heightmap, and offset. Then I would use one Map Close to generate the final heightmap and one Map Close to generate the texture, but it just felt sloppy.

In the end it looks like my implementations ended up as a tradeoff between parameters and inputs/outputs. What I'd really like is the ability to make recursive devices, but I imagine that might be hard to implement. Maybe some kind of device repeater would be possible?

5
General Discussion / Re: How to increase no# of Terraces within a range
« on: December 11, 2011, 04:09:23 AM »
Try attached, it's something similar I was doing.

6
Macros and Plugins / Re: Rotator
« on: October 06, 2011, 03:09:51 PM »
Thanks to Remnant's help I got this to work correctly.

Before:


After:


7
Plugin Development Forum / Re: MSVC 2010 Express
« on: October 05, 2011, 01:28:27 AM »
Ah, that makes sense. Well at least even if I was doing it right it wouldn't have linked anyway.

I actually tried to install MSVC 2005 Express and had some installation problems on Windows 7, but maybe I'll go back and try again in the meantime. Thanks for the reply!

8
Macros and Plugins / Rotator
« on: October 04, 2011, 03:55:28 PM »
Hey guys, I figured posting here would get more views.

I've generated a series of colormaps and heightmaps for a bunch of objects I wanted to place on terrains, but I wanted their placement to convey a natural appearance and having them all facing the same direction was hindering me. I found Rhalph's clever rotation macro that helped some, but it could only rotate in 90 increments. So I expounded on Rhalph's idea with this link to create a plugin that can rotate in arbitrary degrees between 0 and 45 (other angles are achievable in combination with Rhalph's macro).

There's a catch, though. Without trigonometric devices I'm losing edge information (see details here). I think it's currently good enough for my application (and possibly yours), but if someone could provide a basic trigonometric device or help me with my environment, it could be better.

9
Plugin Development Forum / Re: MSVC 2010 Express
« on: October 04, 2011, 12:38:29 PM »
Bump.

I've made a rotation macro (attached) that allows arbitrary angles. It uses a series of three shears in alternating directions to perform rotation. Depending on whether the shears begin vertically or horizontally, different corners of the heightmap are clipped. I'd like to do the rotation both ways and combine them to get more of the rotated heightmap. The issue is, without trigonometric functions, I appear to be forced to use the Taylor approximations which leads to inaccuracies that are noticeable on combination.

If someone could help me set up an environment to compile and link the example device, I think I could develop a trig device and make this rotation macro really shine.

10
Plugin Development Forum / MSVC 2010 Express
« on: October 03, 2011, 12:55:51 AM »
Hello, I'm trying to build the Example Devices solution with MSVC 2010 Express and am receiving linker errors:

Code: [Select]
1>PluginCore.lib(WMPacket.obj) : error LNK2019: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ([email protected]@[email protected]@@[email protected]@Z) referenced in function "public: __thiscall std::locale::locale(void)" ([email protected]@@[email protected])
1>PluginCore.lib(DeviceWorld.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ([email protected]@[email protected]@@[email protected]@Z)
1>PluginCore.lib(Device.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ([email protected]@[email protected]@@[email protected]@Z)
1>PluginCore.lib(Parameter.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ([email protected]@[email protected]@@[email protected]@Z)
1>PluginCore.lib(HField.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ([email protected]@[email protected]@@[email protected]@Z)
1>PluginCore.lib(IODevices.obj) : error LNK2001: unresolved external symbol "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" ([email protected]@[email protected]@@[email protected]@Z)
1>PluginCore.lib(WMPacket.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(DeviceWorldBuilder.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(Ports.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(DeviceWorld.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(Device.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::erase(unsigned int,unsigned int)" ([email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z)
1>PluginCore.lib(Parameter.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(HField.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(IODevices.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xran(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(WMPacket.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(DeviceWorldBuilder.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(Ports.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(DeviceWorld.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(Device.obj) : error LNK2019: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ) referenced in function "protected: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" ([email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
1>PluginCore.lib(Parameter.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(HField.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(IODevices.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl std::_String_base::_Xlen(void)" ([email protected][email protected]@@SAXXZ)
1>PluginCore.lib(WMPacket.obj) : error LNK2019: unresolved external symbol "long const std::_BADOFF" ([email protected]@@3JB) referenced in function "protected: virtual class std::fpos<int> __thiscall std::basic_streambuf<char,struct std::char_traits<char> >::seekoff(long,int,int)" ([email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]@[email protected]@Z)
1>PluginCore.lib(DeviceWorld.obj) : error LNK2001: unresolved external symbol "long const std::_BADOFF" ([email protected]@@3JB)
1>Release\Example Devices.dll : fatal error LNK1120: 4 unresolved externals

Does anyone know what the problem is or perhaps have a successfully-converted, MSVC 2010 Express solution?

Pages: [1]