GithubHelp home page GithubHelp logo

zenithght / accidental-noise-library Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 2.88 MB

Automatically exported from code.google.com/p/accidental-noise-library

C++ 47.36% CMake 0.71% C 49.82% Lua 1.70% Makefile 0.40% Batchfile 0.01% Python 0.01%

accidental-noise-library's People

Contributors

jtippetts avatar

accidental-noise-library's Issues

Missing lua binding and troubles with overloads (maybe again MSVC 2010 related)

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:

MSVC 2010 error C2552: 'dirs' : non-aggregates cannot be initialized with initializer list

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

CImplicitScaleDomain?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.