Click here to Skip to main content
15,894,325 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: That's it, I hate Edge now Pin
Super Lloyd1-Feb-17 0:14
Super Lloyd1-Feb-17 0:14 
GeneralRe: That's it, I hate Edge now Pin
Mark_Wallace31-Jan-17 23:07
Mark_Wallace31-Jan-17 23:07 
GeneralSantos Pin
Member 1135938231-Jan-17 19:53
Member 1135938231-Jan-17 19:53 
GeneralRe: Santos Pin
Super Lloyd31-Jan-17 19:55
Super Lloyd31-Jan-17 19:55 
GeneralRe: Santos Pin
lopatir31-Jan-17 20:19
lopatir31-Jan-17 20:19 
GeneralRe: Santos Pin
OriginalGriff31-Jan-17 20:29
mveOriginalGriff31-Jan-17 20:29 
GeneralRe: Santos Pin
User 1013254631-Jan-17 22:45
User 1013254631-Jan-17 22:45 
GeneralKaboom! Pin
CDP180231-Jan-17 13:00
CDP180231-Jan-17 13:00 
I have been trying to revive my little raphics engine and UI project ever since Mickeysoft thought that it would be a great idea to kill off XNA. They wanted to herd us over to Win8 Metro (cr)apps, but I did not feel like rewriting all that code, nor ever putting anything into their (Cr)AppStore.

My only chance to revive the whole thing is to replace XNA by MonoGame, which started out as a reincarnation of XNA. Replacing the references was the easy part. The .Net code compiles and works. There are a few warnings for using methods which have become obsolete, but still are included for compatibility.

The real issue was with compiling and including the graphics resources, including the shaders. Think of them as declarations of data structures and functions which run on the graphics processor. The shaders were written for HLSL 2.0, the MonoGame compiler expected at least ver. 4.0.

For starters I converted only my test program for the graphics engine. It worked, but the particle effects were not rendered at all. The shader for the particles was a little more complex. It does not only do the transformations and texture mapping. It also calculates the animation of the particles on the GPU. The shader compiled without errors or warnings, the test program runs fine and displays everything with exception of the particles.

To make things short: The input structure of the shader had to be declared differently in version 4.0. The input values did not get mapped to the right variables and remained 0. The shader rendered lots of totally transparent pixels at coordinates (0, 0).

Time for some bragging. Smile | :)

This is my test program. The whole scene is scripted with XAML, including the camera which moves through a series of waypoints. I also made the models and the textures, so be easy on me. I'm not an artist.

This is a screenshot of a transport on a landing platform.[^]

The particle effects were started by pressing F1. Up to now that means that nothing happened at all. This is what it looks like now![^]

Looks like the graphics engine is back from the dead. Now I can't wait to get the UI working again.
The language is JavaScript. that of Mordor, which I will not utter here

This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.

"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."

If software development were a circus, we would all be the clowns.

GeneralRe: Kaboom! Pin
Brisingr Aerowing31-Jan-17 13:07
professionalBrisingr Aerowing31-Jan-17 13:07 
GeneralDr Who Pin
R. Giskard Reventlov31-Jan-17 9:59
R. Giskard Reventlov31-Jan-17 9:59 
GeneralRe: Dr Who Pin
The pompey31-Jan-17 12:07
The pompey31-Jan-17 12:07 
GeneralRe: Dr Who Pin
Nathan Minier31-Jan-17 14:37
professionalNathan Minier31-Jan-17 14:37 
GeneralRe: Dr Who Pin
User 842031-Jan-17 16:09
User 842031-Jan-17 16:09 
PraiseRe: Dr Who Pin
Daniel Pfeffer31-Jan-17 21:09
professionalDaniel Pfeffer31-Jan-17 21:09 
GeneralRe: Dr Who Pin
Mark_Wallace31-Jan-17 23:29
Mark_Wallace31-Jan-17 23:29 
GeneralRe: Dr Who Pin
OriginalGriff31-Jan-17 20:35
mveOriginalGriff31-Jan-17 20:35 
GeneralRe: Dr Who Pin
lopatir31-Jan-17 20:55
lopatir31-Jan-17 20:55 
GeneralRe: Dr Who Pin
Pom Pey31-Feb-17 5:04
Pom Pey31-Feb-17 5:04 
GeneralRe: Dr Who Pin
Wastedtalent31-Jan-17 22:11
professionalWastedtalent31-Jan-17 22:11 
PraiseRe: Dr Who Pin
Mark_Wallace31-Jan-17 23:11
Mark_Wallace31-Jan-17 23:11 
GeneralRe: Dr Who Pin
Mark_Wallace31-Jan-17 23:14
Mark_Wallace31-Jan-17 23:14 
NewsI'm surprised this hasn't been reported already Pin
Kent Sharkey31-Jan-17 9:55
staffKent Sharkey31-Jan-17 9:55 
GeneralRe: I'm surprised this hasn't been reported already Pin
User 842031-Jan-17 10:02
User 842031-Jan-17 10:02 
GeneralRe: I'm surprised this hasn't been reported already Pin
Sander Rossel31-Jan-17 10:04
professionalSander Rossel31-Jan-17 10:04 
GeneralRe: I'm surprised this hasn't been reported already Pin
Jeremy Falcon31-Jan-17 10:06
professionalJeremy Falcon31-Jan-17 10:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.