|
Some recent topics started on our forums |
There is no copy operator...
|
Hi,
I have this AngelScript class that I want to use a basis for various script-classes:
class ScriptActor
{
void init(Actor @actor)
{
m_actor = actor;
}
Actor @m_actor;
};
Actor is a reference type that I registered with An... |
Posted December 21, 2010 11:09:36 AM
|
Porting custom binary file loader from c++ to c#
|
Hi,
I want to port a loader for a custom binary file format from c++ to c# and have run into some questions I didn't think about before, because my experience with c# in that area is lacking.
In the cpp code I often use things like this
stream... |
Posted November 12, 2010 2:32:30 AM
|
Portable c++ for binary file loader
|
Hi,
to load a binary file I often use code like this
stream.read((char*)&struct, sizeof(Struct));
stream.read((char*)structs, numStructs * sizeof(Struct));
For the data I use this code works for both x86 and x64. Is it true, that this is a me... |
Posted November 12, 2010 7:38:18 AM
|
[SlimDX] with VS2010 .net 4
|
Hi,
I try to initialize Dx11 via SlimDX in a C# VS2010 application. I get an error message that the mixed mode assembly is not compatible. When I looked it up on the web, I found hints that it should be supported by now.
Any idea what could... |
Posted November 10, 2010 3:12:15 PM
|
Minor design question (dynamic_cast or not?)
|
Context:
I want to draw several transparent entities and need to order entities, that are not of the same type, by distance to the eye. I have "particle systems" and "actors", both derived from "entity".
Plan:
Sort a list of entities containing... |
Posted September 30, 2010 2:21:45 PM
|
Model-scale and specular highlights
|
Hi,
after writing a some forward shading code (for use with transparent stuff) and comparing it with deferred shaded models I noticed, that the specular highlights differ if the model is scaled. The bigger the scale, the more apparent the differen... |
Posted September 27, 2010 1:23:42 PM
|
Can dot() on two normalized vectors be greater than 1
|
Just want quickly to ask something: Can dot-product of two normalized vectors be greater than 1?
|
Posted September 27, 2010 1:26:56 PM
|
Setting up view matrix for mirror rendering
|
I'm currently trying to render a scene as seen in a mirror. I can't get the camera right though. I thought it would be enough to change the view matrix, so this is what I did:
Vector3 rd = reflect(camera.getWorldDir(), mirror->getNormal());
Ve... |
Posted September 20, 2010 9:26:00 AM
|
libogg/libvorbis projets for VS2010
|
I recently installed VS2010 and am in the process of recompiling some libraries. It went ok until it was time for libobb and libvorbis. The conversion of the projectfiles failed for some reason. Has somebody had some experience with this? |
Posted September 6, 2010 8:00:38 AM
|
Refractions, copy of render target
|
I've been thinking about implementing some form of refraction. I read about this method, which seems fine.
One thing I want to double-check though, is my impression, that regardless of how you go about it, you end up with a second copy of your back-... |
Posted September 14, 2010 8:54:54 AM
|
View All Topics Started By This User
|
|
Some recent replies made on our forums |
There is no copy operator...
|
Ok, thanks for the answer!
Seems that I need to look into the syntax of AS a little more.
I was under the impression, that Type @ is kind of like a pointer. So if I copy the value from one pointer to another, the actual data behind it is no... |
Posted December 21, 2010 4:37:17 PM
|
Porting custom binary file loader from c++ to c#
|
Thanks for the answer. For now I went ahead and used the BinaryReader, but I'll consider the marshall method for later comparison! |
Posted November 14, 2010 8:05:59 AM
|
Portable c++ for binary file loader
|
Thanks for the explanation and links! |
Posted November 14, 2010 8:02:26 AM
|
Portable c++ for binary file loader
|
I try to avoid sizeof() issues by using types defined in <cstdint> in such cases. Is this valid?
What about the padding issues? Is the only way to avoid them, to read element for element?
What is recommended in such a scenario?
I starte... |
Posted November 12, 2010 8:59:00 AM
|
[SlimDX] with VS2010 .net 4
|
Ok, I found the problem.
I was referencing the .net 2 version of the dll. Scrolling further down in the selection dialog revealed the correct dlls. |
Posted November 11, 2010 9:53:08 AM
|
[D3D11 Effect] How to use SetMatrixArray?How access it on shader?
|
[quote]Original post by Icebone1000
Im currently use it like that:
XMMATRIX **ppMatrices = new XMMATRIX*[3];
fxBoneMatrices->SetMatrixArray( (FLOAT*)ppMatrices[0], 0, 3 );
[/quote]
This looks suspicious. How are you filling the matric... |
Posted November 8, 2010 4:58:19 PM
|
deferred rendering and tesselation
|
@DarkChris: What is this technique you speak of and why the secrecy? ;) |
Posted October 16, 2010 9:48:07 AM
|
Minor design question (dynamic_cast or not?)
|
Quote:Original post by Gage64
If you really want to avoid virtual functions, you can use separate containers like rip-off suggested. To sort them you can do something similar to merge-sort. You first sort each container, and then you traverse both c... |
Posted October 1, 2010 6:57:22 AM
|
Minor design question (dynamic_cast or not?)
|
Quote:Original post by Gage64
If you're using depth buffering, there shouldn't be any artifacts caused by the drawing order.
If I use depth-reads it could be that stuff behind a transparent object doesn't get drawn because of the depth-buffer. So I... |
Posted October 1, 2010 6:13:05 AM
|
Minor design question (dynamic_cast or not?)
|
Quote:Original post by Misery
You could possibly add some kind of flag to each entity. F ex. 0 to actors and 1 to particles and use if()then{} statement. Or try sorting entities in a vector that from 1 to Na you store actors and from Na+1 to size(ve... |
Posted October 1, 2010 5:08:10 AM
|
View All Replies Made By This User
|