Jump to content

  • Log In with Google      Sign In   
  • Create Account

JohnnyCode

Member Since 10 Mar 2008
Offline Last Active Yesterday, 08:09 PM

#5312498 Why C# all of a sudden?

Posted by on 25 September 2016 - 08:40 AM

The argument that C++ is slower because people might use it badly is... not even valid. You can't compare good code in language A with bad code in language B :rolleyes: That's the kind of hyperbole that only Linus 'Arrogance' Torvalds can get away with.

 

Yes, I'm sorry for that :) I think I was in fact shadely trying to acknowledge that C++ is performative becouse of its C language inclusion, while it added scalability and enclosed library/modules bigger operativity, but not aiming those as more performative, but aimed to not trade off any performance by those new development features in language.

 

Amazing features that gives libraries and modules of routines ability to approach the user in ways that in C are not possible, but are subjected ta large missusage or misinterpretation too often.




#5312488 Why C# all of a sudden?

Posted by on 25 September 2016 - 06:58 AM

 

For 20 years C++ was the recommended standard language, especially in the gaming industry. Mostly because it is fast and powerful, inheriting most programming language standards you can possibly think of.


Game and engine development have diverged for a while and the breach is only getting larger over time. Neither AAA nor indie studios build their own engines anymore, that job is now left to middleware developers. All that performance you're talking about needs to be done on the engine side of things, while game developers now instead focus on the higher level stuff - and that can be done with languages that aren't as close to the metal as C++.

It also says something about how complex the game industry has gotten now.

 

C has been a large standard for game development for long time, especialy in times of large impacting games and games "golden era". Wheather it was John Carmack's work, even Doom 3 , Shiny Entertainment's games, Half Life's Source engine as derived from Quake engine, etc. - simply the majority of AAA back then, as well as engines that were not designed and ment to be licensed (Unreal was c++ for that matter).

C++ was greatly presented mainly by open source projects, etc.

 

C++ can introduce performance negative impacts against C, since the inheritance was a subject of heavy missusing very often, making possibly all objects unable to interleave in immediate accessible arrays and so forth.

 

So if you present C++ as great solely becouse it has been the industry standard for develping video games, you have to review your data.




#5311475 How to detect diamond shape collision detection , if object is inside the dia...

Posted by on 19 September 2016 - 01:05 PM

Or, you could do frustum check against four infinite 2d lines, considering :

 

infinite lines are in constant winding getting defined (clockwise or counter-clockwise, see point pairs of your diamond).

 

In such case, compute distance of an arbitrary examined point from those four lines (regular infinite line), and if all distances have the same sign- your inside, otherwise outside. (it can be positive fours, or negative fours, depends on winding direction, main thing the winding is constant).




#5311456 Why C# all of a sudden?

Posted by on 19 September 2016 - 11:14 AM

I.e. Java, since 1995 the most hated of them all (at least how I experienced it). Considered really slow, JIT is shit and its strong OOP rules and type safety is disabling the programmer or for whatever reasons. Causing (among others) a lot of religion flame wars between believers.

 

Java is a memory managed language, very similar (nearly identical) to C#, but has been poorly implemented, not just performance of its memory manager, but even actual bugging of it, such as memory acumulation over time, uneffective or even absent memory moving and pooling, too long sweep visits of manager etc.

 

Is it over? Do not know and I do not think.

 

On the other hand, C# has been an extremly well implemented mem-managed language on Windows NT platform.

C# applications will even outperform C++ aplications 90% of time, since C# will move memory, while static fixed heap allocations of a c++ process will never do so.

In other words, you will have to write top professional c++ aplication to outperform C#, while it is true that ideal c++ will outperform C# clone of instructions always.

 

C# is thus very popular in game development, it is performative, production safe (c++ can couse leak bugs that can even dump entire projects), fast to work, and it is popular even over the difficulty in actual game development it has, since DX has to be wrapped to be used safely in C#, as GPU can be accessed only thrugh c++ libraries (there are already C#/CLI modules that does the wrap, even official ones such as XNA, but XNA dated out with income of newer DXes).

 

CLI is the actual bridge between memory unsafe and memory safe modules of a process- what you have stated about pointers in C#, is not entirely true, pointers are in CLI, or unsafe blocks in C# that are not reccomended.

 

So yes, C# is so great that even gamedev industry desires for it, even if it has the one (difficult) obstacle mentioned.




#5310525 Condition for function

Posted by on 12 September 2016 - 08:06 PM

 

I don't need square root function though at all, only the condition of mine you have exactly appointed to hold true about that function.


You are contradicting yourself. You don't need a square root function at all; you just need a function that satisfies some condition that only the square root function satisfies, as was proven before in this thread.


I too think there is only squreroot, or more exactly, only: f(x)=xm/n  where m/n are whole numbers such that m/n=1/2 .


No, that's not more exact. You are just complicating things needlessly.


This is so far what I think, but I'm in no position to hold that as definitive, or even proven, I just think that by the intiuiton.


I just gave you pretty much a formal proof. I am starting to smell troll.

 

Yeah, those one line proofs of Alvaro, of course, lets enclose those bijections of squarerrots curves for ever. Alvaro has proven enough, stop trolling, right!




#5307917 OBJ file and texture coordinates

Posted by on 25 August 2016 - 03:49 PM

Texture space is positive/negative complete space where 0.0 coordinate is top-left/bottom-left pixel center in texture.

 

But of course textures till, and thus texture cooridnate of 1.0,10.0 is ten textures away to right, and 1.0,-10.0 is ten textures left.

 

That is the way by which texture coordiantes can till repeating textures. Interval 0.0-1.0 contains the entire texture.




#5306739 Managing opengl contexts for more than one window

Posted by on 19 August 2016 - 10:19 AM

Thanks again all.

​Based on the comments I'm not going to try to support multiple windows :) My project doesn't need them anyway.
 

You can render to any amount of windows by their window handle being identified and provided to a context, as context can get succesfully updated to output onto a new window.

This window can be a background of a modal form etc (I once even hijacked IE browser window to output my Present(), this was in DX though)

Multiple separate contexts do not make much sense unless they make sense.




#5303881 Do My Swordsmen Look Like Cyborgs?

Posted by on 03 August 2016 - 06:27 PM

Is it much better or not really? (No UI changes yet)

The helmet seems well fine now to me.

 

You have to work on those minimalistic shoulder plates.




#5303583 Copyright

Posted by on 01 August 2016 - 09:31 PM

For examle, "Taking of Pelham 123" had to use none of federal institutions agreements, but the Major of N.Y. City.

Super movie, watch it! A movie Travolta was eager to shoot. since Travolta is a spoiled actor.

https://www.youtube.com/watch?v=KcMGwXM0n2w




#5303579 Copyright

Posted by on 01 August 2016 - 09:16 PM

so do I need permission for using the word CIA?

If you want to use genuine executive symbols/references of U.S public institutions ...yes :)

 

Have your entire set-up involving it very ready and defined/described.

 

Get redy to pay 3 month sallary of a single person at least to do so, +, add up some other compensation since it will have to occupy even some higher competent person time.

 

40 000 dolars is not too much- movies/games are all welcome.




#5303251 Copyright

Posted by on 30 July 2016 - 05:18 PM

The author (or creator) of a work is automatically granted a list of primary rights over the thing they have created.

Possible creators of those (assets of facting products) have been employed by the public body- and since that- the creations belong to the public body.

 

And those creations are controled by appointed authority (by public) to control them ever since (with restrictions still, crossing too far by manager appointed still).

 

I am just trying to have appointed the diference and reasoning behind their usage or display, not based upon the authorship- that may have resulted in a serious crime if proven intentional.

 

Please frob , save me, I am no more responding.




#5303213 Copyright

Posted by on 30 July 2016 - 12:07 PM

It absolutely is possible. I'm not sure why you keep saying that, as global treaties have made copyright and trademark laws uniform across nearly all the globe.

 

Maybe this confusion I and you have, stems from fact, that yes, all those symbols and graphics are well defined, protected, and identifiable, while being even more protected from derivatives than other commercial TMs.

 

But that is not due to someone's authoring right over them, and violation of the usage does not fall under copyright infriguing being investiagted and punished.




#5303172 Copyright

Posted by on 30 July 2016 - 06:11 AM

The companies get permission to use them. That permission is not free. This also applies to government organizations, including the FBI

Becouse it takes their time to confirm the usage, and inspect the intended usage definition.

 

I understand you cannot put FBI logo on a car, cannot put Sheriff logo on your web page, cannot put a "Department of Agriculture" on some badge of yours even in words.

Again, this has nothing to do with authorship infrigement, but a protection of executive symbols against missusage and - even display. 

 

Any usage of those must be confirmed, and for movies or games it is easier, since an intent to abuse observers of those symbols is clearly too unexistant.

 

The trouble extent is uncomparable between a copyright violation, and an executive symbol missusage, it is more serious than falsificating a legal document.

 

I will quote myself now

It is not possible to violate their usage from copyright-authorship manner.



#5303018 Copyright

Posted by on 28 July 2016 - 05:49 PM

I have been Taught that western law is based on rights, not on ordinances.

If it is based on ordinances, you are right, and following movies must have been simply exclusively pardoned:

https://en.wikipedia.org/wiki/White_House_Down

https://en.wikipedia.org/wiki/Air_Force_One_(film)

 

If we omit privilaged ordinance usage, since the public subjects were the protagonists in the movies, there are also piles of cheap movies where subjects belonging to public were mere antagonists.

 

Were they privileged too, or is this a basic precedental law to use them in fiction?

Do you realy insist on copyright claim from public?

 

If those forgeries damaged the public, by usage of subjects that belong to the public, then yes, you could persecute the creators. But thaty has nothing to do with authorship of those public subjects.




#5303014 Copyright

Posted by on 28 July 2016 - 05:23 PM

Just because the FBI is a government organization does not mean they or their intellectual property are public domain. The use of the seals and names of the FBI and CIA are very tightly controlled by US federal law (see the CIA Act of 1949 for one such example). The FBI actively polices unauthorized commercial use of its name.

 

It is not possible to violate their usage from copyright-authorship manner.

Yes, you can get yourself a confirmed ultimate punishment for treason, or, any other! Again, no authorship and copyright damage to be ever claimed. You can get jailed for missusage, or, even ultimately punished. No copyright/authorship claim in this though...






PARTNERS