Brutus2D
« 1280x1024 »

Welcome Guest. Please Login or Register.
Dec 24, 2009, 10:49am




Brutus2D :: Brutus2D :: General Questions and Tips :: 1280x1024
   [Search This Thread][Send Topic To Friend] [Print]
 AuthorTopic: 1280x1024 (Read 88 times)
peter
Full Member
***
member is offline





Joined: Aug 2007
Gender: Male
Posts: 144
 1280x1024
« Thread Started on Jul 30, 2009, 12:27pm »

Hi Guilect,

a high resolution of 1280x1024 is not possible here.
(full screen)!
do i have something overlook ?
Peter
Link to Post - Back to Top  IP: Logged
Guilect
Administrator
*****
member is offline




[homepage]

Joined: May 2005
Posts: 843
 Re: 1280x1024
« Reply #1 on Jul 31, 2009, 4:20pm »

Hi Peter,

I just tried a test of that resolution and it worked for me.

I used the example that comes with Brutus2D "examples\animated\simpleanim.b2d"

I changed the line :
if (graphics.initialize <> True) then exit sub
to
if (graphics.initialize( 1280, 1024, false) <> True) then exit sub

If it does not work for you, perhaps it is a limit of either your graphics card or of the monitor?

Maybe someone else can give this resolution a try and see if it works. I see no reason why it would not.

Regards,
Guilect
Link to Post - Back to Top  IP: Logged
peter
Full Member
***
member is offline





Joined: Aug 2007
Gender: Male
Posts: 144
 Re: 1280x1024
« Reply #2 on Aug 1, 2009, 6:21am »

Hi Guilect,

is very strange here, i get a screen, which is not beginning at 0, 0.
Other Basic dialects show a correct screen for me!
The screen is displaced at 100, 100! No intuitiveness about it.
Link to Post - Back to Top  IP: Logged
Guilect
Administrator
*****
member is offline




[homepage]

Joined: May 2005
Posts: 843
 Re: 1280x1024
« Reply #3 on Aug 1, 2009, 11:21am »

I will check more closely to see if I have any pixel offset.
Link to Post - Back to Top  IP: Logged
Guilect
Administrator
*****
member is offline




[homepage]

Joined: May 2005
Posts: 843
 Re: 1280x1024
« Reply #4 on Aug 2, 2009, 9:08am »

I checked the placement of a primative:
graphics.SetRect 0,0,2,2,&hFFFF0000
and it is placed at the upper left corner of the full screen created by
graphics.initialize( 1280, 1024, false).

So, I am not able to reproduce your problem.

Perhaps you could come up with a minimal amount of code that produces the problem for you and post it so that I can try it.

Here is my test code:
Code:
option explicit

dim bRunning
bRunning = True

dim background

sub main()

    if graphics.initialize( 1280, 1024, false) <> True then exit sub
    
    key.initialize
    
    do while bRunning = True
        if key.pressed(1) or key.pressed(0) = True then bRunning = False
     graphics.clear 255
         ' dots (pixels) (well a little bigger than a pixel
         ' so you can see them
         ' next line sets a red dot at 0,0
         graphics.SetRect 0,0,2,2,&hFFFF0000
         'graphics.SetRect 50,400,2,2,&hFF00FFFF
         'graphics.SetBox 50,10,200,200,&hFF000000
         ' now a circle
         'graphics.SetCircle 320,240, 200,&hFFFFFF00
         'graphics.SetLine 20,20, 200, 440, &hFFFF00FF
         'graphics.setline 100, 130, 100, 100, &hFF0000FF ' vertical line
         'graphics.setline 100, 180, 40, 180, &hFF0000FF ' horizontal line
     graphics.display
    loop    
    key.terminate
    graphics.terminate

end sub

Call Main()
« Last Edit: Aug 2, 2009, 9:10am by Guilect »Link to Post - Back to Top  IP: Logged
peter
Full Member
***
member is offline





Joined: Aug 2007
Gender: Male
Posts: 144
 Re: 1280x1024
« Reply #5 on Aug 2, 2009, 4:11pm »

Hi Guilect,

your test has the same result!
i will show you a picture, so you can see what i do mean.

http://www.zshare.net/download/6353564742b6d1c4/

regards
Peter
Link to Post - Back to Top  IP: Logged
Guilect
Administrator
*****
member is offline




[homepage]

Joined: May 2005
Posts: 843
 Re: 1280x1024
« Reply #6 on Aug 3, 2009, 7:04pm »

Hi Peter,

I looked at the picture. That is wierd.

I did another test where I set my desktop resolution to
1280x1024; previously it had been at 1024x768.
Frequency has always been 75Hz.
I ran my test program above.
It displays a full screen properly.
I am using a nVidia GeForce2 and a Gateway monitor.
So there is some difference between our computers.
Monitor, graphics card, or settings.
It is hard for me to guess at what might be going on since I can not reproduce the issue here.

What resolution and frequency are your desktop set at?
« Last Edit: Aug 3, 2009, 7:19pm by Guilect »Link to Post - Back to Top  IP: Logged
peter
Full Member
***
member is offline





Joined: Aug 2007
Gender: Male
Posts: 144
 Re: 1280x1024
« Reply #7 on Aug 4, 2009, 3:32am »

Hi Guilect,

my resolution is 1152 x 864.
Frequency = 85 Hz.

This is really wired, because it is running with C++, Assembler,Basic4gl,Coolbasic in a proper manner.

I think, that i will take another resolution. 1024x768

Regards
Peter
Link to Post - Back to Top  IP: Logged
Guilect
Administrator
*****
member is offline




[homepage]

Joined: May 2005
Posts: 843
 Re: 1280x1024
« Reply #8 on Aug 11, 2009, 3:36pm »

I have looked over the source code and nothing looks out of place.
Have you tried other resolutions, frequencies, etc.
Link to Post - Back to Top  IP: Logged
peter
Full Member
***
member is offline





Joined: Aug 2007
Gender: Male
Posts: 144
 Re: 1280x1024
« Reply #9 on Aug 12, 2009, 8:17am »

yes Guilect !
I tryed the resolution: 1280x960 & 1360x768
But without success.

Only the high resolution 1024x768 was going correct!
I am thinking that i use this one, i must the whole graphics mutate in another size.

Does not matter because we have time enough!
Regards
Peter
Link to Post - Back to Top  IP: Logged
   [Search This Thread][Send Topic To Friend] [Print]

Google
Web brutus2d.proboards44.com
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!