mxgmn / texturesynthesis Goto Github PK
View Code? Open in Web Editor NEWTexture synthesis from examples
License: Other
Texture synthesis from examples
License: Other
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.
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'.
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>
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
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.