zenithght / accidental-noise-library Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/accidental-noise-library
Automatically exported from code.google.com/p/accidental-noise-library
Playing around with CTreeContainer and the script you provided here
http://www.gamedev.net/topic/643968-procedural-terrainworld/.
(Disclaimer: Not sure how useful the following discoveries actually are, since
I still suspect an MSVC 2010 incompatibility. Again. It does look like your
above script works with your compiler.)
Had some time to realize that CTreeContainer::getRGBABufferUnsafe wasn't
actually covered by the lua binding (Maybe there's some other way to grab it).
Adding it to Builder.pkg was easy enough.
So far so good, but no matter what, I always got pitch black. Another debug
session made me realize that something was off with the overloads in
scaleOffset. Other overloads failed as well, especially rgbaCompositeChannels:
Breakpoints revealed that the fixed 1.0 alpha came out as "1", so the tree
container looked for an nonexisting node (and returned zero). So I landed in
the lua interpreter code and almost gave up.
Then I found this (paragraph Overloads)
http://www.codenix.com/~tolua/tolua++.html#functions
Quote: "It is important to know that tolua decides which function will be
called in run-time, trying to match each provided function. tolua first tries
to call the last specified function; if it fails, tolua then tries the previous
one."
Ah-ha. The "fix" was to reverse the order of the overloads. Quoted since I bet
there are now other combinations which will fail. To really fix this means
probably to use a different approach, I don't know (as mentioned on gamedev, I
have no experience with lua ).
Or am I missing something ?
Nonetheless, I attached the script and Builder.pkg.
Cheers.
Original issue reported on code.google.com by [email protected]
on 11 Aug 2013 at 7:50
Attachments:
Full error:
error C2552: 'dirs' : non-aggregates cannot be initialized with initializer
list ..\accidental-noise-library\Imaging\erosion.cpp line 28
Here's the MSDN entry :
http://msdn.microsoft.com/en-us/library/0s6730bb(v=vs.90).aspx
Using the constructor explicitly works:
static SDrop dirs[8]=
{
SDrop(-1,-1),
SDrop(0,-1),
SDrop(1,-1),
SDrop(-1,0),
SDrop(1,0),
SDrop(-1,1),
SDrop(0,1),
SDrop(1,1)
};
I tried to do a commit, but I would probably need permission for that.
Cheers
Original issue reported on code.google.com by [email protected]
on 9 Aug 2013 at 2:37
Hi,
How does someone use that function? I see lots of overloaded definitions in the
headers.
Thanks
Colin
Original issue reported on code.google.com by [email protected]
on 4 Apr 2015 at 5:29
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.