Omicron - prerelease 0.7 "Tweaky Update"
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: Omicron - prerelease 0.1
azekillDIABLO : Java compilation is even easier & faster if you use a good IDE, as Java has been designed for in-runtime compilation !
Re: Omicron - prerelease 0.1
Yepp, C++ is one of the slowest languages to compile. (Except Rust, maybe, because Rust does more pre-compile checks)
The reason is, it compiles to machine code.
C# and Java compiles to Bytecode, which is faster to compile, but much less optimized.
If it's about C++, the biggest advantage is that it can run bare metal, and thus is the only choice you have when rendering complex scenes. You can program in brainfuck, too, but that's just fucked up.
What it doesn't do is fast compilation.
The reason is, it compiles to machine code.
C# and Java compiles to Bytecode, which is faster to compile, but much less optimized.
If it's about C++, the biggest advantage is that it can run bare metal, and thus is the only choice you have when rendering complex scenes. You can program in brainfuck, too, but that's just fucked up.
What it doesn't do is fast compilation.
A man much wiser than me once said: "go away, you are bothering me"
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: Omicron - prerelease 0.1
"only choice you have when rendering complex scenes"
Rendering happens in GLSL on graphics card - nowhere else.
Rendering happens in GLSL on graphics card - nowhere else.
Re: Omicron - prerelease 0.1
First off, DirectX doesn't use GLSL, second, leave the graphics card out of here - that's just making it complicated.LMD wrote:"only choice you have when rendering complex scenes"
Rendering happens in GLSL on graphics card - nowhere else.
My statement stays true, though. C# and Java both don't have the interfaces to render 3D in an efficient way. If you want to go fast, C++ is the language of choice.
A man much wiser than me once said: "go away, you are bothering me"
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: Omicron - prerelease 0.1
"DirectX doesn't use GLSL"
- if HLSL makes you lucky...
"C# and Java both don't have the interfaces to render 3D in an efficient way."
- I did not use C#, but in Java, there are those "interfaces". They are called JOGL or LWJGL. And they can render 3D in an efficient way. Google for some comparison.
"If you want to go fast, C++ is the language of choice."
- not always- http://scribblethink.org/Computer/javaCbenchmark.html
Especially take a look at the section :
- if HLSL makes you lucky...
"C# and Java both don't have the interfaces to render 3D in an efficient way."
- I did not use C#, but in Java, there are those "interfaces". They are called JOGL or LWJGL. And they can render 3D in an efficient way. Google for some comparison.
"If you want to go fast, C++ is the language of choice."
- not always- http://scribblethink.org/Computer/javaCbenchmark.html
Especially take a look at the section :
Conclusions: Why is "Java is Slow" so Popular?
Java is nearly equal to (or faster than) C++ on low-level and numeric benchmarks. This should not be surprising: Java is a compiled language (albeit JIT compiled). [...]
Re: Omicron - prerelease 0.1
Guess what those libraries are using... DLL's written in C++ (I know, because I used them).LMD wrote:They are called JOGL or LWJGL.
Also, I never said Java is slow.
It just doesn't support rendering natively. No matter what you do, if you want to render something and if you want to do that with performance, you need C or C++.
A man much wiser than me once said: "go away, you are bothering me"
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: Omicron - prerelease 0.1
DLL's ? Keep Linux in mind !
But yes, you're right.
But yes, you're right.
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.1
I go out five minutes and it's already war in my topic. Calm down bois. And the wesbite you seen is an old one related to pixelcraft revival project.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: Omicron - prerelease 0.1
Please gimme some time to get my Halberd out...
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.1
No Don't murder him xD
DEVLOG: So bois, I'm stuck with water render so I feel Like I'm going to stop to opaque ugly water state for now. I'll try to start water physics, but first an important optimisation is needed for cavegen. I've got a gud idea. I'll reduce the number of noise to 2: one for caves, one for ores. When a block is chosen by the mapgen it will either choose to place a certain patch of ore, in function of depth and a simple random factor (no simplex3 noise, they're computer expensive).
brace yourselves : Update soon!
DEVLOG: So bois, I'm stuck with water render so I feel Like I'm going to stop to opaque ugly water state for now. I'll try to start water physics, but first an important optimisation is needed for cavegen. I've got a gud idea. I'll reduce the number of noise to 2: one for caves, one for ores. When a block is chosen by the mapgen it will either choose to place a certain patch of ore, in function of depth and a simple random factor (no simplex3 noise, they're computer expensive).
brace yourselves : Update soon!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.1
When you discover it works ""fine"" :
Using the same noise for all ore gen. (yay I have to re do everything all over again)
Using the same noise for all ore gen. (yay I have to re do everything all over again)
- Attachments
-
- screenshot-ores-look-legit.jpg (235.87 KiB) Viewed 923 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.1
I won't ever touch to a noise again in my whole life:
It isn't supposed to do this...
It isn't supposed to do this...
- Attachments
-
- screenshot-all-fine.jpg (158 KiB) Viewed 923 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: Omicron - prerelease 0.1
I guess that in omicron it'll be easy to get to much mese. :-Dazekill_DIABLO wrote:I won't ever touch to a noise again in my whole life:
It isn't supposed to do this...
Have a nice day! :D
Re: Omicron - prerelease 0.1
That's gold silly, this is Omicron, not Minetest! :PMineYoshi wrote:I guess that in omicron it'll be easy to get to much mese. :-Dazekill_DIABLO wrote:I won't ever touch to a noise again in my whole life:
It isn't supposed to do this...
@azekill_DIABLO: what was wrong with the first attempt? The ore distribution looked fine to me.
Hey, what can i say? I'm the bad guy.
Re: Omicron - prerelease 0.1
C'mon, just because I was right for once.LMD wrote:Please gimme some time to get my Halberd out...
A man much wiser than me once said: "go away, you are bothering me"
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.1
Well it was simple: you find one type of ore, you are sure to find all the others at the same place. I'm hoping to make the game survival at the end so it would be too simple.Stix wrote: @azekill_DIABLO: what was wrong with the first attempt? The ore distribution looked fine to me.
@Vapalus vs. LMD: Is the war ended? :P
EDIT / DEVLOG: Ores generate properly now. I used a stupidly weird code but it works fine.
Caves are now much less ineffective, ores generate using one unique noise and a random integer. See by yourself on this orthogonal view of the world:
Zoom in to see the details and oregen. Sorry for low quality of screenshot, upload sizes are low.
EDIT2 : For those interested here is the whole code that generates the underground.
Code: Select all
for (int y = 1; y < 34; y++) {
func(x, y, z, Item_STONE, arg);
}
/** Ores generation system (insanely stupid but fast) **/
for (int y = 2; y < 30; y++) {
if (simplex3(x * 0.12, y * 0.12, z * 0.12, 6, 0.5, 2) > 0.78) {
int rand_num = (rand() % 100);
if (y < 10 && rand_num < 15) {
func(x + 5, y, z + 5, Item_RUBIS_ORE * flag, arg);
} else if (y < 20 && rand_num < 30) {
func(x - 12, y, z - 12, Item_GOLD_ORE * flag, arg);
} else if (y < 20 && rand_num < 65) {
func(x + 8, y, z - 8, Item_IRON_ORE * flag, arg);
} else if (y < 30 && rand_num < 85) {
func(x, y, z, Item_COAL_ORE * flag, arg);
}
}
}
// caves (inneficient)
for (int y = 1; y < 38; y++) {
if (simplex3(
x * 0.06, y * 0.08, z * 0.06, 8, 0.3, 2) > 0.64) {
func(x, y, z, 0 * flag, arg);
}
}
- Attachments
-
- screenshot-cave-ortho.jpg (360.18 KiB) Viewed 923 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.1
DEVLOG: Code was changed, it's no longer stupid or glitchy. Ores may be a bit rare though.
An example of what can be generated by this code. Note the Core's shell (bedrock if you want).
Code: Select all
for (int y = 1; y < 34; y++) {
func(x, y, z, Item_STONE, arg);
}
// Ores generation system
for (int y = 2; y < 30; y++) {
if (simplex3(x * 0.12, y * 0.12, z * 0.12, 6, 0.5, 2) > 0.74) {
int rand_num = (rand() % 100);
if (y < 10 && rand_num < 15) {
func(x, y-1, z, Item_RUBIS_ORE * flag, arg);
} else if (y < 20 && rand_num < 30) {
func(x, y, z, Item_GOLD_ORE * flag, arg);
} else if (y < 20 && rand_num < 65) {
func(x, y, z, Item_IRON_ORE * flag, arg);
} else if (y < 30 && rand_num < 85) {
func(x, y, z, Item_COAL_ORE * flag, arg);
}
}
}
// Caves
for (int y = 1; y < 38; y++) {
if (simplex3(
x * 0.06, y * 0.08, z * 0.06, 8, 0.3, 2) > 0.64) {
func(x, y, z, 0 * flag, arg);
}
}
An example of what can be generated by this code. Note the Core's shell (bedrock if you want).
- Attachments
-
- screenshot-cave.jpg (75.59 KiB) Viewed 923 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: Omicron - prerelease 0.2 *Update*
Awesome!
BTW: when are you planning on adding a proper hotbar/inventory? Oh, and we musn't forget about tnt :-).
BTW: when are you planning on adding a proper hotbar/inventory? Oh, and we musn't forget about tnt :-).
Hey, what can i say? I'm the bad guy.
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.2 *Update*
OMICRON pre-release 0.2
Update time boiz!!! I've added lots of new stuff in this update, I hope you'll enjoy it! Here is a detailed changelog:- caves improved
- ores added
- noises improved
- cave entrances added
- core's shell added
- wip water
- new block properties
- buildable_to type
- textures details improved
Some images of what you'll see in this update:
EDIT: @Stix: Sorry to tell you this but it's one of my last steps. I need to implement life/HP and evrything related to it before. Lots of work. Also, thank you :D Hope you'll have fun with the update!
- Attachments
-
- A cave entrance in Omicron pre0.2
- screenshot-cave-entrance.jpg (228.66 KiB) Viewed 923 times
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.2 *Update*
I looked at booth. Thanks for your help but I kinda want to do it myself or I'll never progress!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: Omicron - prerelease 0.2 *Update*
From experience, that's the wrong way of "progressing".azekill_DIABLO wrote:I looked at booth. Thanks for your help but I kinda want to do it myself or I'll never progress!
We're talking about software here, and the biggest progress, or step, you can do is by working with other people and looking at their solution instead of just trying it all by yourself.
That's how open source should work, isn't it?
A man much wiser than me once said: "go away, you are bothering me"
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.2 *Update*
Yep you're quite right but I'm stubborn :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.2 *Update*
LMD what do I have to do to get an answer on github. I need you :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: Omicron - prerelease 0.2 *Update*
<sadpost style="dramatic=100%;">
LMD has disappeared. :'C
</sadpost>
Anyway I was bored today so I did this:
A terminal header for the game. I found ugly to only have a closing message so here it is. Tell me if there's a wiser way to do a multiline printf("lol")
EDIT: I'm stupid. \n are made for this. Oh, I'm tired of myself.
LMD has disappeared. :'C
</sadpost>
Anyway I was bored today so I did this:
Code: Select all
printf("\n");
printf("▒█▀▀▀█ ▒█▀▄▀█ ▀█▀ ▒█▀▀█ ▒█▀▀█ ▒█▀▀▀█ ▒█▄░▒█ \n");
printf("▒█░░▒█ ▒█▒█▒█ ▒█░ ▒█░░░ ▒█▄▄▀ ▒█░░▒█ ▒█▒█▒█ \n");
printf("▒█▄▄▄█ ▒█░░▒█ ▄█▄ ▒█▄▄█ ▒█░▒█ ▒█▄▄▄█ ▒█░░▀█ \n");
printf("a game by azekill_DIABLO\n");
EDIT: I'm stupid. \n are made for this. Oh, I'm tired of myself.
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Who is online
Users browsing this forum: No registered users and 7 guests