GithubHelp home page GithubHelp logo

mxgmn / texturesynthesis Goto Github PK

View Code? Open in Web Editor NEW
948.0 39.0 53.0 2.73 MB

Texture synthesis from examples

License: Other

C# 100.00%
texture-synthesis procedural-generation machine-learning gamedev algorithm csharp

texturesynthesis's Issues

Wrong number format in the XML file

My C# compiler (.NET version v4.0.30319, Windows XP) got an exception when I attempted to run the exe I compiled from the .cs file.

It is in my native language, so not sure if you need it.

Anyways, changing all the temperature values in the XML from 1.0 to 1 solved the issue.

You may want to revise Stuff.Get function.

Compile Error involving System.Drawing.Common

When running dotnet run --configuration Release TextureSynthesis.csproj I get the following error:

error NU1100: Unable to resolve 'System.Drawing.Common (>= 4.5.1)' for 'net6.0'.

I tried running dotnet add package System.Drawing.Common --version 4.5.1 to install the package (not 100% sure if this is even correct) and the following error occurs:

error: NU1100: Unable to resolve 'System.Drawing.Common (>= 4.5.0)' for 'net6.0'.
error: Package 'System.Drawing.Common' is incompatible with 'all' frameworks in project 'D:\Users\Mitchell\Downloads\TextureSynthesis-master\TextureSynthesis-master\TextureSynthesis.csproj'.

Can you please explain the parameters in the samples.xml file?

Curious to know what all these extra parameters are.

<samples>
	<sample method="Harrison" name="lava" N="2" width="100" height="100" indexed="True"/>
	<sample method="Harrison" name="water1" N="3"/>
	<sample method="Harrison" name="forest1" N="1" width="400" height="400" screenshots="3"/>
	<sample method="Harrison" name="forest1" N="2" width="400" height="400" M="5"/>	
	<sample method="Harrison" name="forest1" N="3" polish="3" width="400" height="400"/>
	<sample method="Harrison" name="cobbles48" N="3" polish="6" width="400" height="400"/>
	<sample method="Harrison" name="water3" N="3"/>
	<sample method="Harrison" name="water4" N="6"/>
	<sample method="Harrison" name="brocks" N="1"/>
	<sample method="Harrison" name="brocks" N="2"/>
	<sample method="Harrison" name="forest2" N="1"/>
	<sample method="Harrison" name="forest2" N="2"/>	
	<sample method="Harrison" name="forest2" N="4"/>
	<sample method="Harrison" name="bluehalls" N="1" polish="5"/>
	<sample method="Harrison" name="skulls" N="3"/>
	<sample method="Harrison" name="strangegrass" N="3"/>
	<sample method="Harrison" name="grass48" N="1"/>
	<sample method="Harrison" name="sword" N="6"/>
	<sample method="Harrison" name="redfoam" N="1" width="300" height="300" screenshots="3"/>
	<sample method="Harrison" name="redfoam" N="2" width="300" height="300" screenshots="3"/>
	<sample method="Harrison" name="redfoam" N="3" width="300" height="300" screenshots="3"/>
	<sample method="Coherent" name="mountains" indexed="True" K="3" N="2" screenshots="2" width="400" height="400"/>
	<sample method="Coherent" name="hills" indexed="True" K="3" N="2" screenshots="2" width="400" height="400"/>
	<sample method="Coherent" name="grass" indexed="True" K="3" N="2" screenshots="2" width="400" height="400"/>
	<sample method="Coherent" name="forest1" indexed="True" K="4" N="2" screenshots="2" width="400" height="400"/>
	<sample method="Coherent" name="water3" indexed="True" K="4" N="3" screenshots="2" width="400" height="400"/>
	<sample method="Coherent" name="shallows" indexed="True" K="4" N="3" screenshots="2" width="400" height="400"/>
	<sample method="Full" name="sand1" indexed="False" N="3" screenshots="2" width="46" height="46"/>
	<sample method="Full" name="sand2" indexed="False" N="3" screenshots="2" width="46" height="46"/>
	<sample method="Full" name="lava" indexed="False" N="3" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="stones" indexed="False" N="3" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="wall" indexed="False" N="2" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="vines" indexed="True" N="3" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="vines" indexed="False" N="2" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="redfoam" indexed="False" N="3" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="redfoam" indexed="False" N="2" screenshots="2" width="32" height="32"/>
	<sample method="Full" name="water2" indexed="False" N="3" screenshots="4" width="48" height="48"/>
</samples>

ran fine the first time but when I tried with my own tiles its failing

checked out and built it and ran it. worked fine.

so I swapped out the Samples folder with my own tiles 256x256

and I get this message. I swapped back the old sample images and now its permanently failing!


Unhandled Exception: System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(String filename)
   at Program.Main() in C:\Users\yyy\game\TextureSynthesis\SynTex.cs:line 35

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.